Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / dbSetMatrixTexture( );

Author
Message
Usukhuu
16
Years of Service
User Offline
Joined: 10th Jan 2008
Location:
Posted: 14th Jan 2008 13:01
I can't texture my matrix. Help me!


dbLoadImage("Sprite.bmp",3);
dbMakeMatrix(1,50,50,24,40);

for(int x=0;x<24;x++){
for(int y=0;y<40;y++){
//dbSetMatrixHeight(1,x,y,dbRnd(1));
dbSetMatrixHeight(1,x,y,level1[x][y]);
dbSetMatrixTexture(1,2,3);
}
}



dbSetMatrixTexture(int id ,int iTextureMode, int iMipGen);

what is it ? TextureMode and MipGen

tempicek
16
Years of Service
User Offline
Joined: 27th Nov 2007
Location: Prague
Posted: 14th Jan 2008 13:13 Edited at: 14th Jan 2008 13:13
Which part of the documentation you don't understand? From the doc:

Quote: "Setting the Texture Wrap Mode to zero will use the default wrap mode which repeats the pattern of the texture over and over, a mode of one will mirror the texture to create a seamless texture pattern and a mode of two will set clamping which retains the colour of the last pixel at the textures edge and paint with that throughout the out of range area. The Mipmap Generation Flag is used to ensure the image has a mipmap texture. A mipmap is a texture that has many levels of detail, which the matrix can select and use based on the matrix vertex distance from the camera. Use integer values to specify the parameters.
"
jason p sage
17
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA

Login to post a reply

Server time is: 2024-10-08 15:57:36
Your offset time is: 2024-10-08 15:57:36