Home » U++ Library support » Draw, Display, Images, Bitmaps, Icons » Create my own Rect for clipping?
Create my own Rect for clipping? [message #7696] |
Mon, 15 January 2007 21:05 |
snap2000
Messages: 14 Registered: January 2007
|
Promising Member |
|
|
Hi. I'm trying to create a chess game, and I have my chess pieces laid out in a single png image. My intentions were to simply clip the image to display a particular piece, which I can do fine by putting in the coordinates myself... however, that isn't very practical. It'd be much nicer to be able to use Clip(const Rect&) instead of Clip(int, int, int, int)...
So, I was wondering how I'm supposed to create my own Rect? I noticed in GTypes.h that the Rect template has four Set functions, but I can't seem to be able to use them...
|
|
|
Goto Forum:
Current Time: Sat Dec 07 21:41:41 CET 2024
Total time taken to generate the page: 0.01930 seconds
|