0ad/source/lib/res/graphics/cursor.h
janwas e943dbf44b fixes
wsdl: check handles before using, prevent bogus error message due to
stupid MapWindowPoints return value
cursor: robustify, add CppDoc

This was SVN commit r6096.
2008-06-22 11:11:59 +00:00

28 lines
805 B
C

/**
* =========================================================================
* File : cursor.h
* Project : 0 A.D.
* Description : mouse cursors (either via OpenGL texture or hardware)
* =========================================================================
*/
// license: GPL; see lib/license.txt
#ifndef INCLUDED_GRAPHICS_CURSOR
#define INCLUDED_GRAPHICS_CURSOR
/**
* draw the cursor on-screen.
*
* @param name base name of cursor or zero to hide the cursor.
* @param x,y coordinates [pixels] (origin is in the upper left)
*
* uses a hardware mouse cursor where available, otherwise a
* portable OpenGL implementation.
**/
extern LibError cursor_draw(const char* name, int x, int y);
// internal use only:
extern int g_yres;
#endif // #ifndef INCLUDED_GRAPHICS_CURSOR