Advertisement
ZeronSix

RS

Mar 16th, 2014
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.53 KB | None | 0 0
  1. #include <RocketSauce/RocketSauce.h>
  2.  
  3. //Screen dimension constants
  4. const int SCREEN_WIDTH = 640;
  5. const int SCREEN_HEIGHT = 480;
  6.  
  7. int main( int argc, char* args[] ) {
  8.     RS_Init( RS_CONTEXT_GL33 );
  9.  
  10.     ShaderProgram* prg = FS_GetAsset( "assets\\shaders\\default.shprg" );
  11.     Texture* tex = FS_GetAsset( "assets\\RocketSauce_Logo.rsimg" );
  12.  
  13.     while ( !App_ShouldQuit() ) {
  14.         Screen_StartFrame();
  15.  
  16.         if ( Mouse_IsButtonReleased( MOUSEBUTTON_3 ) ) {
  17.             App_SetShouldQuit( true );
  18.         }
  19.  
  20.         Screen_EndFrame();
  21.     }
  22.  
  23.     RS_Finish();
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement