Here I tried to insert a value into the value of GLKVector2Add , but the error in the expected error is missing from this line.
GLKVector2Add
GLKVector2 self.position = GLKVector2Add({-200.695, 271},{-803.695, 0}); //Error - Expected expression
Try creating the " GLKVector2 " variables by setting them and then passing them as arguments in your " GLKVector2Add " call. Perhaps the compiler just does not know what to do with "{-200.695,271}" (a combination of floating point and integer numbers).
GLKVector2
You must add them using GLKVector2Make .
GLKVector2Make
So your code will be:
GLKVector2 position = GLKVector2Add( GLKVector2Make(-200.695, 271), GLKVector2Make(-803.695, 0));
Source: https://habr.com/ru/post/1414712/More articles:C # - some packets are deleted when reading from a TCP connection - c #HTML.DropdownList - having a text field shows the values โโof multiple columns - asp.net-mvc-3Binding.SourceUpdated not burning - c #How to set a counter using Hector / Cassandra? - cassandraProblems with Android when playing an audio file - androidIs set_exception_handler set to replace set_error_handler? - phpGoogle App Engine Java App Engine version - google-app-engineRestoring a 64-bit database to a 32-bit SQL Server database - sql-server-2008Mac OSX Console Does Not Show Sandbox Violations - cocoaScala: List [Tuple3] to display [String, String] - listAll Articles