mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-18 14:23:56 -07:00
wsdl: check handles before using, prevent bogus error message due to stupid MapWindowPoints return value cursor: robustify, add CppDoc This was SVN commit r6096.
28 lines
805 B
C
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
|