Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
I need help on something...
#3
Well, I figured out what I was doing wrong...

I was doing this...
Code:
Type LightType
R as Single
G as Single
B as Single
A as Single
End Type

Dim Light_Ambient as LightType

But, it should have been this...
Code:
Dim Light_Ambient(3) as Single

So, it works now. Tongue

Do you have an example of loading an Sdl_Surface into an Ogl Texture variable Texture(Width,Height,2)? I still can't get that to work right.
:roll:

EDIT:
Here's the code I tried to stick an Sdl_Surface onto an Ogl texture var with...

Texture() is ubyte
image1 is Sdl_Surface ptr

Code:
glEnable Gl_Texture_2D
glBindTexture(GL_TEXTURE_2D, Texture(0,0,0))
glTexImage2D(GL_TEXTURE_2D, 0, 3, imagew-1, imageh-1, 0, GL_RGB, GL_UNSIGNED_BYTE, image1)
Reply


Messages In This Thread
I need help on something... - by Dr_Davenstein - 12-24-2004, 10:09 AM
I need help on something... - by relsoft - 01-02-2005, 01:15 PM
I need help on something... - by Dr_Davenstein - 01-02-2005, 02:27 PM
I need help on something... - by relsoft - 01-04-2005, 12:21 PM
I need help on something... - by Dr_Davenstein - 01-06-2005, 03:01 AM
I need help on something... - by relsoft - 01-06-2005, 11:46 AM
I need help on something... - by Z!re - 01-06-2005, 11:59 AM
I need help on something... - by TheBigBasicQ - 01-06-2005, 01:23 PM
I need help on something... - by relsoft - 01-07-2005, 10:39 AM
I need help on something... - by na_th_an - 01-07-2005, 07:12 PM
I need help on something... - by relsoft - 01-08-2005, 07:20 AM
I need help on something... - by na_th_an - 01-08-2005, 07:47 AM
I need help on something... - by relsoft - 01-08-2005, 07:58 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)