You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

58 lines
2.1 KiB

  1. /*******************************************************************************************
  2. *
  3. * raylib - Template for basic test
  4. *
  5. * <Test description>
  6. *
  7. * This example has been created using raylib v1.2 (www.raylib.com)
  8. * raylib is licensed under an unmodified zlib/libpng license (View raylib.h for details)
  9. *
  10. * Copyright (c) 2014 Ramon Santamaria (Ray San - raysan@raysanweb.com)
  11. *
  12. ********************************************************************************************/
  13. #include "raylib.h"
  14. int main()
  15. {
  16. // Initialization
  17. //--------------------------------------------------------------------------------------
  18. const int screenWidth = 800;
  19. const int screenHeight = 450;
  20. InitWindow(screenWidth, screenHeight, "raylib basic test - <test description>");
  21. // TODO: Initialize all required variables and load all required data here!
  22. SetTargetFPS(60);
  23. //--------------------------------------------------------------------------------------
  24. // Main game loop
  25. while (!WindowShouldClose()) // Detect window close button or ESC key
  26. {
  27. // Update
  28. //----------------------------------------------------------------------------------
  29. // TODO: Update your variables here
  30. //----------------------------------------------------------------------------------
  31. // Draw
  32. //----------------------------------------------------------------------------------
  33. BeginDrawing();
  34. ClearBackground(RAYWHITE);
  35. DrawText("BASIC TEST TEMPLATE", 270, 180, 20, LIGHTGRAY);
  36. EndDrawing();
  37. //----------------------------------------------------------------------------------
  38. }
  39. // De-Initialization
  40. //--------------------------------------------------------------------------------------
  41. // TODO: Unload all loaded data (textures, fonts, audio) here!
  42. CloseWindow(); // Close window and OpenGL context
  43. //--------------------------------------------------------------------------------------
  44. return 0;
  45. }