Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

11855 Posts in 1569 Topics- by 3045 Members - Latest Member: lensreslai

10. February 2012, 05:07:39 AM
Xith3D CommunityGeneral CategorySupport (Moderator: Marvin Fröhlich)TEXTURE DETAILS
Pages: [1]
Print
Author Topic: TEXTURE DETAILS  (Read 463 times)
elijah
Enjoying the stay
*
Offline Offline

Posts: 72


View Profile
« on: 25. March 2010, 01:46:47 PM »

Under Texture Attributes Class it has functions like

 void    setCombineAlphaFunction(int index, org.jagatoo.opengl.enums.TextureCombineFunction combineAlphaFunction)     
 void    setCombineAlphaSource(int index, org.jagatoo.opengl.enums.TextureCombineSource value)
 void    setCombineRGBFunction(int index, org.jagatoo.opengl.enums.TextureCombineFunction combineRgbFunction)           
 void    setCombineRGBSource(int index, org.jagatoo.opengl.enums.TextureCombineSource value)

The question is how do we know the limit value of the index. What do this index do ? Is it related index to the number of TextureUnit ?
Logged
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4337


May the 4th, be with you...


View Profile
« Reply #1 on: 25. March 2010, 08:39:27 PM »

The index ranges from 0 to 2. It is directly mapped to the OpenGL constants
Code:
GL_OPERAND0_RGB_EXT
GL_OPERAND1_RGB_EXT
GL_OPERAND2_RGB_EXT
[code]

These are used for the function
[code]
glTexEnvf( GL_TEXTURE_ENV, GL_OPERAND0_RGB_EXT, ta.getCombineRGBFunction( 0 ).toOpenGL() );

Please read the OpenGL docs about this. Tbh. I don't know, what they do. Smiley

Marvin[/code][/code]
Logged
Pages: [1]
Print
Jump to:  

Theme orange-lt created by panic