mirror of
https://github.com/raysan5/raygui.git
synced 2025-12-25 10:22:33 -05:00
Improved standalone support and example
This commit is contained in:
36
examples/standalone/raygui_standalone.c
Normal file
36
examples/standalone/raygui_standalone.c
Normal file
@ -0,0 +1,36 @@
|
||||
/*******************************************************************************************
|
||||
*
|
||||
* raygui - Standalone mode usage template
|
||||
*
|
||||
* DEPENDENCIES:
|
||||
* raygui 2.6 - Immediate-mode GUI controls.
|
||||
*
|
||||
*
|
||||
* LICENSE: zlib/libpng
|
||||
*
|
||||
* Copyright (c) 2020 Ramon Santamaria (@raysan5)
|
||||
*
|
||||
**********************************************************************************************/
|
||||
|
||||
#define RAYGUI_IMPLEMENTATION
|
||||
#define RAYGUI_STANDALONE
|
||||
#include "../../src/raygui.h"
|
||||
|
||||
#include "custom_backend.h"
|
||||
|
||||
//------------------------------------------------------------------------------------
|
||||
// Program main entry point
|
||||
//------------------------------------------------------------------------------------
|
||||
int main()
|
||||
{
|
||||
// TODO: Initialize your systems (window, graphics, inputs)
|
||||
|
||||
// TODO: Create your game loop
|
||||
{
|
||||
// TODO: Use raygui API
|
||||
}
|
||||
|
||||
// TODO: De-initialize all resources
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user