Rube textures question
Posted: Sun Sep 08, 2013 8:38 pm
Hi,
I have recently purchased Rube to use on my project, its going well but I am having trouble displaying textures on the screen in my engine. I am using Marmalade SDK for mobile devices.
So I successfully get the list of textures and load them but I am not sure what some of the member data variables actually do. Most of them I can figure out but not these:
b2dJsonImage
b2Vec2 center; //Center of what?
float angle; //Angle of what?
float scale; //Scale of what?
float aspectScale; //Scale of what?
b2Vec2 corners[4]; //Corners of what?
//VBO data? //Is this used to create a VBO (geometry) to apply the texture onto? These are not even used //in the sfml sample.
int numPoints;
float* points;
float* uvCoords;
int numIndices;
unsigned short* indices;
//
Please help as there is no documentation and the variables are not commented.
Thanks a lot,
-Rogerboy
I have recently purchased Rube to use on my project, its going well but I am having trouble displaying textures on the screen in my engine. I am using Marmalade SDK for mobile devices.
So I successfully get the list of textures and load them but I am not sure what some of the member data variables actually do. Most of them I can figure out but not these:
b2dJsonImage
b2Vec2 center; //Center of what?
float angle; //Angle of what?
float scale; //Scale of what?
float aspectScale; //Scale of what?
b2Vec2 corners[4]; //Corners of what?
//VBO data? //Is this used to create a VBO (geometry) to apply the texture onto? These are not even used //in the sfml sample.
int numPoints;
float* points;
float* uvCoords;
int numIndices;
unsigned short* indices;
//
Please help as there is no documentation and the variables are not commented.
Thanks a lot,
-Rogerboy