Click here to Skip to main content
15,896,726 members
Home / Discussions / Graphics
   

Graphics

 
GeneralRe: please Pin
Archy_Yu29-Oct-09 16:50
Archy_Yu29-Oct-09 16:50 
GeneralRe: please Pin
Luc Pattyn29-Oct-09 17:38
sitebuilderLuc Pattyn29-Oct-09 17:38 
QuestionDirectx Pin
messages25-Oct-09 3:30
messages25-Oct-09 3:30 
AnswerRe: Directx Pin
Baltoro29-Oct-09 11:13
Baltoro29-Oct-09 11:13 
GeneralRe: Directx Pin
messages31-Oct-09 4:02
messages31-Oct-09 4:02 
GeneralRe: Directx Pin
Baltoro1-Nov-09 11:29
Baltoro1-Nov-09 11:29 
QuestionMy texture just didnot work! Anyone give a hand? Pin
Archy_Yu24-Oct-09 1:41
Archy_Yu24-Oct-09 1:41 
GeneralRe: My texture just didnot work! Anyone give a hand? Pin
IdUnknown26-Oct-09 3:22
IdUnknown26-Oct-09 3:22 
For the PIXELFORMATDESCRIPTOR you set the pixel type to PFD_TYPE_RGBA so i think you need to set the colorbits to 32 instead of 24.

And for the mipmaps

gluBuild2DMipmaps(GL_TEXTURE_2D, 3, imageWidth, imageHeight, GL_RGB, GL_UNSIGNED_BYTE, image);

try this instead

gluBuild2DMipmaps(GL_TEXTURE_2D, GL_RGBA, imageWidth, imageHeight, GL_RGBA, GL_UNSIGNED_BYTE, image);

or

gluBuild2DMipmaps(GL_TEXTURE_2D, GL_RGBA, imageWidth, imageHeight, GL_BGRA, GL_UNSIGNED_BYTE, image);

notice the fifth parameter. This is what I use for loading Windows bitmap into texture.
GeneralRe: My texture just didnot work! Anyone give a hand? Pin
Archy_Yu26-Oct-09 4:49
Archy_Yu26-Oct-09 4:49 
AnswerRe: My texture just didnot work! Anyone give a hand? Pin
Tim Craig26-Oct-09 7:41
Tim Craig26-Oct-09 7:41 
GeneralRe: My texture just didnot work! Anyone give a hand? Pin
Archy_Yu26-Oct-09 20:11
Archy_Yu26-Oct-09 20:11 
QuestionGrayscale values Pin
econner21-Oct-09 20:32
econner21-Oct-09 20:32 
AnswerRe: Grayscale values Pin
ely_bob27-Oct-09 5:22
professionalely_bob27-Oct-09 5:22 
QuestionChoose correct pixel (Intertesting problem) Pin
mah_pankaj20-Oct-09 16:12
mah_pankaj20-Oct-09 16:12 
AnswerRe: Choose correct pixel (Intertesting problem) Pin
Tim Craig20-Oct-09 19:27
Tim Craig20-Oct-09 19:27 
GeneralRe: Choose correct pixel (Intertesting problem) Pin
mah_pankaj21-Oct-09 0:47
mah_pankaj21-Oct-09 0:47 
GeneralRe: Choose correct pixel (Intertesting problem) Pin
Tim Craig21-Oct-09 6:06
Tim Craig21-Oct-09 6:06 
GeneralRe: Choose correct pixel (Intertesting problem) Pin
mah_pankaj26-Nov-09 18:57
mah_pankaj26-Nov-09 18:57 
QuestionIDirectDrawSurface::IsLost() never returns Pin
Code-o-mat20-Oct-09 4:25
Code-o-mat20-Oct-09 4:25 
QuestionReading an image Pin
xoxoxoxoxoxox16-Oct-09 8:02
xoxoxoxoxoxox16-Oct-09 8:02 
AnswerRe: Reading an image Pin
ely_bob27-Oct-09 6:01
professionalely_bob27-Oct-09 6:01 
QuestionHow to convert bmp 32bpp image Pin
FrederikL616-Oct-09 2:24
FrederikL616-Oct-09 2:24 
AnswerRe: How to convert bmp 32bpp image Pin
enhzflep20-Oct-09 19:28
enhzflep20-Oct-09 19:28 
Questionbackground in OpenGL Pin
Ben_King14-Oct-09 22:43
Ben_King14-Oct-09 22:43 
AnswerRe: background in OpenGL Pin
Tim Craig15-Oct-09 8:46
Tim Craig15-Oct-09 8:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.