NWengine 0.9
|
The Context class represents the application context. More...
#include <Context.h>
Static Public Member Functions | |
static void * | InitContext (int scrWidth, int scrHeight) |
Initializes the application context. | |
static bool | ShouldClose () |
Checks if the application should close. | |
static void | Update () |
Updates the application context. | |
static void | EnableBlend (bool status=true) |
Enables or disables blending. | |
static void | EnableWireframe (bool status=true) |
Enables or disables wireframe rendering. | |
static void | EnableDepthTest (bool status=true) |
Enables or disables depth testing. | |
static void | Clear (float r=0.0f, float g=0.0f, float b=0.0f, float a=1.0f) |
Clears the screen with the specified color. | |
static void | SetViewPort (int x, int y, int sizeX, int sizeY) |
Sets the viewport. | |
static void | SetFullscreen (bool state=true) |
Sets the application to fullscreen mode or windowed mode. | |
static void | SetTitle (const char *title) |
Sets the title of the application window. | |
static void | Destroy () |
Destroys the application context. | |
Static Public Attributes | |
static void * | window = nullptr |
The window handle. | |
static int | vSync = 1 |
The vertical synchronization value. | |
static int | NATIVE_WIDTH = 1080 |
The native width of the application window. | |
static int | NATIVE_HEIGHT = 720 |
The native height of the application window. | |
static int | WINDOW_WIDTH = 1080 |
The width of the application window. | |
static int | WINDOW_HEIGHT = 720 |
The height of the application window. | |
The Context class represents the application context.
Clears the screen with the specified color.
r | The red component of the color. |
g | The green component of the color. |
b | The blue component of the color. |
a | The alpha component of the color. |
RGBA
Enables or disables blending.
status | The blending status. True to enable blending, false to disable blending. |
Enables or disables depth testing.
status | The depth testing status. True to enable depth testing, false to disable depth testing. |
Enables or disables wireframe rendering.
status | The wireframe status. True to enable wireframe rendering, false to disable wireframe rendering. |
Initializes the application context.
scrWidth | The screen width. |
scrHeight | The screen height. |
Sets the application to fullscreen mode or windowed mode.
state | The fullscreen state. True for fullscreen mode, false for windowed mode. |
Sets the title of the application window.
title | The title of the window. |
Sets the viewport.
x | The x-coordinate of the viewport. |
y | The y-coordinate of the viewport. |
sizeX | The width of the viewport. |
sizeY | The height of the viewport. |
|
static |
Checks if the application should close.