Search found 10 matches

by ares23
Sat Jan 12, 2008 23:22
Forum: Help
Topic: Texture::loadFromMemory()
Replies: 18
Views: 8354

Thanks you guys for all the help. I can't believe it was something so small! Damn what a waste of everyone's time!

Thanks CE for spotting the problem. (Btw should it be Crazy Paulie?)

I'll post again when I have completed the minimap class for those that follow.
by ares23
Fri Jan 11, 2008 00:34
Forum: Help
Topic: Texture::loadFromMemory()
Replies: 18
Views: 8354

Hi Pompei2 - Thanks for the advice, I'll start wrapping my CEGUI code in a try/catch clause.

Could I see your loadFromMemory() code as a point of reference? If you're doing the same as me then comparing them might highlight my problem.
by ares23
Thu Jan 10, 2008 23:07
Forum: Help
Topic: Texture::loadFromMemory()
Replies: 18
Views: 8354

Ok will do, thanks CE.
by ares23
Thu Jan 10, 2008 15:01
Forum: Help
Topic: Texture::loadFromMemory()
Replies: 18
Views: 8354

I'm not threading at all, just a standard game loop. This would be so much simplier if CEGUI::Texture had writetomemory() also... :(
by ares23
Thu Jan 10, 2008 13:14
Forum: Help
Topic: Texture::loadFromMemory()
Replies: 18
Views: 8354

Crazy Eddie - It is a segmentation fault.
by ares23
Thu Jan 10, 2008 01:58
Forum: Help
Topic: Texture::loadFromMemory()
Replies: 18
Views: 8354

Hey Eddie, Thanks for the help, you made some good points but I'm still hitting a brick wall. Here is the current incarnation of the code: BMP Image; Image.ReadFromFile("Media/materials/textures/terrain_texture.bmp"); unsigned int *mPixelBuffer = new unsigned int[Image.TellWidth...
by ares23
Wed Jan 09, 2008 20:22
Forum: Help
Topic: Texture::loadFromMemory()
Replies: 18
Views: 8354

Thanks again for your help scriptkid. I updated the loop as so: BMP Image; Image.ReadFromFile("Media/materials/textures/terrain_texture.bmp"); //unsigned int *mPixelBuffer = (unsigned int *)malloc (Image.TellWidth() * Image.TellHeight()); unsigned in...
by ares23
Wed Jan 09, 2008 03:44
Forum: Help
Topic: Texture::loadFromMemory()
Replies: 18
Views: 8354

Texture::loadFromMemory()

Hey! Can somebody please explain how to create a pixel buffer to be passed to loadFromMemory()? I have a bitmap class (EasyBMP) which gives the RGB values for each pixel but I can't get the texture to render properly. Below is the code I'm currently hacking at: BMP Image; Image.ReadFromFile(&quo...
by ares23
Mon Jan 07, 2008 19:46
Forum: Help
Topic: Draw onto staticimage/window
Replies: 3
Views: 2625

Thanks for the link Rackle. It was a little overkill for what I needed but it lead me down the right path. Below is the code I have ended up with: unsigned int *m_pMapBuffer[1024]; for (int i=0; i<1024; i++) { m_pMapBuffer[i] = (unsigned int*)((181 << 16) |(181 <...
by ares23
Mon Jan 07, 2008 16:34
Forum: Help
Topic: Draw onto staticimage/window
Replies: 3
Views: 2625

Draw onto staticimage/window

Hello! I have a staticimage/window that it created using the following: CEGUI::Texture *cetex = mguirenderer->createTexture("terrain_texture.jpg", "General"); CEGUI::Imageset* imageset = CEGUI::ImagesetManager::getSingleton().createImageset("minimapTexIma...

Go to advanced search