Truelegend
Member
|
How to show cursor ?
Hello, I want to ask u. How to show a Cursor. And change picture of it
Thanks
|
|
07-01-2011 07:06 PM |
|
Morto
Member
|
RE: How to show cursor ?
its one of the tutorials,
Code:
/******************************************************************************/
#include "stdafx.h"
/******************************************************************************/
void InitPre()
{
App.name("Mouse Cursor");
Paks.add("../data/engine.pak");
}
/******************************************************************************/
Bool Init()
{
Text_ds.color =BLACK;
Text_ds.shadow=0;
return true;
}
/******************************************************************************/
void Shut()
{
}
/******************************************************************************/
Bool Update()
{
if(Kb.bp(KB_ESC))return false;
if(Kb.bp(KB_1))Ms.cursor(Images("../data/gfx/cursor/0.gfx")); // if '1' pressed change cursor to '0.gfx'
if(Kb.bp(KB_2))Ms.cursor(Images("../data/gfx/cursor/1.gfx")); // if '2' pressed change cursor to '1.gfx'
return true;
}
/******************************************************************************/
void Draw()
{
D.clear(WHITE);
D.text (0,0,"Press '1' or '2' to change mouse cursor");
}
/*****************
|
|
07-01-2011 07:43 PM |
|
Dandruff
Member
|
RE: How to show cursor ?
you want a 3d cursor?
|
|
07-01-2011 10:30 PM |
|
Truelegend
Member
|
RE: How to show cursor ?
no. But when i have 3d scene. I want 2d cursor on it. I want to use PhysX Hit
|
|
07-02-2011 11:03 AM |
|
Dynad
Member
|
RE: How to show cursor ?
xD
check tutorial
There is always evil somewhere, you just have to look for it properly.
|
|
07-02-2011 11:34 AM |
|