View unanswered posts | View active topics It is currently Mon Jul 16, 2018 6:04 am

Reply to topic  [ 2 posts ] 
 how to do multitexturing? 
Author Message

Joined: Wed Jun 02, 2010 3:14 am
Posts: 52
Location: United States
hi anyone know how to do multitexturing in libnds/devkitarm?
for instance if i have the "texture" & the "normal". (for abit of bump mapping)

im using .pcx format textures. i know how to load 1 texture per model but..

sImage watertexpcx;
loadPCX((u8*)watertex64_pcx, &watertexpcx);
glGenTextures( 1, &watertex64_texid ); glBindTexture( 0, watertex64_texid );
glTexImage2D(0, 0, GL_RGB, TEXTURE_SIZE_64, TEXTURE_SIZE_64, 0, TEXGEN_TEXCOORD, watertexpcx.image.data8);

   get_glPolyFormats();     //from "lighting handler.h"
   glTranslatef(0,0,160);   //glRotateX(-90);
   get_glMats();              //from "lighting handler.h"
glBindTexture( 0, watertex64_texid );

Sun Nov 10, 2013 1:16 am

Joined: Wed Mar 31, 2010 6:05 pm
Posts: 212
there is no multitexturing support on the NDS

Sun Dec 15, 2013 3:18 am
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
  Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software.
Get devkitPro at Fast, secure and Free Open Source software downloads