I have a sprite class setup which holds all my sprite data: position, texture-sheet, all that jazz. And a method that draws the sprite. This is the method:
void CSprite::drawSprite(video::IVideoDriver* driver, bool idl)
{
static int current_frame = 0;
core::rect<s32> spriteRect(0+32*current ...
Search found 11 matches
- Sat Feb 24, 2007 7:56 pm
- Forum: Beginners Help
- Topic: Sprite drawing problem
- Replies: 2
- Views: 224
- Sun Feb 18, 2007 2:30 am
- Forum: Beginners Help
- Topic: Filelist/filesystem problems -- Null pointer
- Replies: 4
- Views: 415
- Sat Feb 17, 2007 9:21 pm
- Forum: Beginners Help
- Topic: Filelist/filesystem problems -- Null pointer
- Replies: 4
- Views: 415
- Sat Feb 17, 2007 7:36 pm
- Forum: Beginners Help
- Topic: Filelist/filesystem problems -- Null pointer
- Replies: 4
- Views: 415
Filelist/filesystem problems -- Null pointer
Hi, I have a method setup in my project that loads bmps using the irrlicht io system and I am having some touble.
bool CPlayer::loadSprites(video::IVideoDriver* driver, IrrlichtDevice* device)
{
if(device == NULL)
{
return false;
}
if(driver == NULL)
{
return false;
}
io::IFileSystem ...
bool CPlayer::loadSprites(video::IVideoDriver* driver, IrrlichtDevice* device)
{
if(device == NULL)
{
return false;
}
if(driver == NULL)
{
return false;
}
io::IFileSystem ...
- Sat Aug 19, 2006 2:56 am
- Forum: Beginners Help
- Topic: Problem swapping tiles from curser tile to map tile
- Replies: 0
- Views: 125
Problem swapping tiles from curser tile to map tile
I am currently developing a 2d map editor to use as a tool for a project i'm working on. A vector of CTile objects, which hold all the tile attributes, is used to draw the map.
class CTile
{
public:
int getx() { return x; }
int gety() { return y; }
int gettilenum() { return tilenum; }
void ...
class CTile
{
public:
int getx() { return x; }
int gety() { return y; }
int gettilenum() { return tilenum; }
void ...
- Mon Jul 24, 2006 9:13 pm
- Forum: Beginners Help
- Topic: context sub menu question
- Replies: 1
- Views: 206
- Sun Jul 02, 2006 2:46 pm
- Forum: Beginners Help
- Topic: scrollbar and contextmenu problem
- Replies: 2
- Views: 4666
- Thu Jun 29, 2006 5:29 pm
- Forum: Beginners Help
- Topic: scrollbar and contextmenu problem
- Replies: 2
- Views: 4666
scrollbar and contextmenu problem
I have setup a contextmenu in my application and it shows up and I can click on File, for example. But when I click on an Item in the submenu nothing happens and I can't click on any of the other menu Items. I have looked in the API and found the function setFocus. I understand what it does, but I ...
- Tue Jun 20, 2006 2:25 am
- Forum: Beginners Help
- Topic: Getting bmp tiles from a zip folder
- Replies: 3
- Views: 337
Getting bmp tiles from a zip folder
I am trying to load a zip file which has all my game tiles in it. I've gone over the tutorials and looked around the forum for some answers, but this is the best i could come up with. Could someone help me out?
io::IFileSystem* filesystem = device->getFileSystem();
filesystem->addZipFileArchive ...
io::IFileSystem* filesystem = device->getFileSystem();
filesystem->addZipFileArchive ...
- Thu Jun 15, 2006 8:07 pm
- Forum: Beginners Help
- Topic: Drawing to a child window
- Replies: 3
- Views: 301
Sorr if I wasn't descriptive enough with my problem. I'll explain a little further.
I have a window setup and inside it is a smaller window, I will use this to draw all the images in a vector which I am using as a tile list. My problem is I am not sure how to draw to the smaller window. Should I ...
I have a window setup and inside it is a smaller window, I will use this to draw all the images in a vector which I am using as a tile list. My problem is I am not sure how to draw to the smaller window. Should I ...
- Thu Jun 15, 2006 1:13 am
- Forum: Beginners Help
- Topic: Drawing to a child window
- Replies: 3
- Views: 301
Drawing to a child window
I have a small problem and if someone could quickly answer this, that would be awsome. I have a child window setup, and i want to draw a bmp inside it, but im not sure how to do it exactly. The API doesn't help much, it only lists functions and i have know idea how to actually use them. Any help is ...