what is the biggest size of cursor

Help and discussion regarding skinning, themes, and other artistic content.

Moderators: CEGUI MVP, CEGUI Team

lw89
Just popping in
Just popping in
Posts: 11
Joined: Tue Jul 28, 2009 09:57

what is the biggest size of cursor

Postby lw89 » Mon Mar 22, 2010 20:46

hi everyone:

I want try create a large cursor like a hand, what is the biggest size of a cursor in CEGUI. and do i need create a new skin or create a new cursor in VS2009

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Re: what is the biggest size of cursor

Postby CrazyEddie » Tue Mar 23, 2010 11:41

The cursor in CEGUI is a software cursor and it's size is limited only by the max texture size supported by the video card. An entire new skin is not needed, just define a new imageset that describes the image and use that to set the imageset and image name for the cursor. This can be done via XML or by loading the image directly:

XML:

Code: Select all

<?xml version="1.0" ?>
<Imageset Name="CursorsImageset" Imagefile="cursor_image.tga" NativeHorzRes="800" NativeVertRes="600" AutoScaled="true">
   <Image Name="TheHand" XPos="0" YPos="0" Width="150" Height="150" />
</Imageset>

You then load this imageset via the ImagesetManager or specify it in your scheme XML file.

Directly:

Code: Select all

CEGUI::ImagesetManager::getSingleton().createFromImageFile("CursorsImageset", "cursor_image.tga");


Note when doing it using the direct code method, you get a single image automatically defined named 'full_image', which you can then use to specify the entire image you loaded, for example:

Code: Select all

CEGUI::System::getSingleton().setDefaultMouseCursor( "CursorsImageset", "full_image" );


CE

princefarr
Just popping in
Just popping in
Posts: 3
Joined: Wed Jan 05, 2011 12:06

Re: what is the biggest size of cursor

Postby princefarr » Wed Jan 05, 2011 12:13

Well, From my point of view, SM_CXCURSOR by SM_CYCURSOR is the only cursor size the system can currently use. Use GetSystemMetrics to find out those values.


Return to “Skins and Themes”

Who is online

Users browsing this forum: No registered users and 1 guest