wordshooter.cpp
void SetCanvasSize(int width, int height) {
/*	glMatrixMode(GL_PROJECTION);
	glLoadIdentity();
	glOrtho(0, width, 0, height, -1, 1); // set the screen size to given width and height.*/
}
/* Function sets canvas size (drawing area) in pixels...
*  that is what dimensions (x and y) your game will have
*  Note that the bottom-left coordinate has value (0,0) and top-right coordinate has value (width-1,height-1)
* */
Function sets canvas size (drawing area) in pixels
that is what dimensions (x and y) your game will have
Note that the bottom-left coordinate has value (0,0) and top-right coordinate has value (width-1,height-1)
Function sets canvas size ( drawing area ) in pixels that is what dimensions ( x and y ) your game will have Note that the bottom - left coordinate has value ( 0 0 ) and top - right coordinate has value ( width - 1 height - 1 )
void SetCanvasSize(int width, int height) {
}
void SetCanvasSize ( int width , int height ) { }
Function sets canvas size (drawing area) in pixels...
that is what dimensions (x and y) your game will have
Note that the bottom-left coordinate has value (0,0) and top-right coordinate has value (width-1,height-1)
Function sets canvas size ( drawing area ) in pixels ... that is what dimensions ( x and y ) your game will have Note that the bottom - left coordinate has value ( 0 0 ) and top - right coordinate has value ( width - 1 height - 1 )
/*	glMatrixMode(GL_PROJECTION);
	glLoadIdentity();
	glOrtho(0, width, 0, height, -1, 1); // set the screen size to given width and height.*/