add upAxis option for Y or Z up

remove some warnings
This commit is contained in:
Erwin Coumans
2014-07-27 10:29:10 -07:00
parent 5e9102bf00
commit 0b40e1a899
10 changed files with 255 additions and 254 deletions

View File

@@ -19,7 +19,7 @@ struct SimpleOpenGL3App
int registerCubeShape(float halfExtentsX=1.f,float halfExtentsY=1.f, float halfExtentsZ = 1.f);
int registerGraphicsSphereShape(float radius, bool usePointSprites=true, int largeSphereThreshold=100, int mediumSphereThreshold=10);
void drawGrid(int gridSize=10, float yOffset=0.001);
void drawGrid(int gridSize=10, float upOffset=0.001, int upAxis=1);
void swapBuffer();
void drawText( const char* txt, int posX, int posY);
struct sth_stash* getFontStash();