13 {
14
17 return 1;
19
20 printf("--- Mouse Mode Controls ---\n");
21 printf("1: NORMAL (Visible, Free)\n");
22 printf("2: HIDDEN (Invisible, Free)\n");
23 printf("3: CAPTURED (Invisible, Locked)\n");
24 printf("ESC: Exit\n");
25
26
28
31
32
34
35
37 printf("Mode: NORMAL\n");
39 }
41 printf("Mode: HIDDEN\n");
43 }
45 printf("Mode: CAPTURED\n");
47 }
48
49
51 break;
52
53
55
56 }
57
58
60 }
61
63
65 return 0;
66}
sbgl_InitResult sbgl_Init(int w, int h, const char *title)
Initializes the engine and opens a window.
bool sbgl_WindowShouldClose(sbgl_Context *ctx)
Checks if the user or OS has requested to close the window.
const sbgl_InputState * sbgl_GetInputState(sbgl_Context *ctx)
Retrieves the input state for the current frame.
void sbgl_SetMouseMode(sbgl_Context *ctx, sbgl_MouseMode mode)
Sets the cursor behavior and visibility.
void sbgl_EndDrawing(sbgl_Context *ctx)
Finalizes the current frame and presents it to the screen.
#define sbgl_Clear
Backward compatibility alias for sbgl_SetClearColor.
void sbgl_DeviceWaitIdle(sbgl_Context *ctx)
Synchronizes the CPU with the GPU, waiting for all commands to complete.
void sbgl_Shutdown(sbgl_Context *ctx)
Gracefully shuts down the engine and releases all resources.
void sbgl_BeginDrawing(sbgl_Context *ctx)
Prepares the engine for a new frame of drawing.
Result structure for initialization.