Search found 3 matches

by richy
Mon Oct 30, 2006 06:03
Forum: Help
Topic: load texture from memory problem
Replies: 4
Views: 3430

worked awesome, thanks guys. I used

Code: Select all

(unsigned int*)((181 <<  0) |(181 <<  8) |(181 << 16) |(255 << 24));

insted.
by richy
Sun Oct 29, 2006 15:06
Forum: Help
Topic: load texture from memory problem
Replies: 4
Views: 3430

I changed MAXSIZE to 1024, the temp function to devidex by 10000*16 inszted of 10000*15 and text->loadFromMemory(MiniMap::pGS()->getMiniMap(),32,32); and imageSet->defineImage("MiniMap", CEGUI::Point(0.0,0.0), CEGUI::Size(32,32), CEGUI::Point(0.0,0.0)); but it still displays black, I also ...
by richy
Sun Oct 29, 2006 02:20
Forum: Help
Topic: load texture from memory problem
Replies: 4
Views: 3430

load texture from memory problem

im trying to load a texture from memory with the code: from minimap class #define MAXSIZE 900 int *m_pMapBuffer[MAXSIZE]; MiniMap::MiniMap(void) { for (int i = 0; i < MAXSIZE; i++) { m_pMapBuffer[i] = (int*)RGB(120,120,120); } } MiniMap* MiniMap::p...

Go to advanced search