Pyrogenesis  trunk
Functions
cursor.h File Reference
#include "lib/file/vfs/vfs.h"
Include dependency graph for cursor.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

Status cursor_draw (const PIVFS &vfs, const wchar_t *name, int x, int y, bool forceGL)
 Draw the cursor on-screen. More...
 
void cursor_shutdown ()
 Forcibly frees all cursor handles. More...
 

Function Documentation

Status cursor_draw ( const PIVFS vfs,
const wchar_t name,
int  x,
int  y,
bool  forceGL 
)

Draw the cursor on-screen.

Parameters
vfs
nameBase name of cursor or zero to hide the cursor.
x,yCoordinates [pixels] (origin at lower left) (the origin is convenient for drawing via OpenGL, but requires the mouse Y coordinate to be subtracted from the client area height. Making the caller responsible for this avoids a dependency on the g_yres global variable.)
forceGLRequire the OpenGL cursor implementation, not hardware cursor

Uses a hardware mouse cursor where available, otherwise a portable OpenGL implementation.

void cursor_shutdown ( )

Forcibly frees all cursor handles.

Currently used just prior to SDL shutdown.