Search found 43 matches

by slenkar
Sat Apr 23, 2011 2:29 pm
Forum: DS/DSi Development
Topic: glloadmatrix 4x4?
Replies: 4
Views: 4003

Re: glloadmatrix 4x4?

how do you call the function?

it needs a m4x4 struct
by slenkar
Fri Apr 22, 2011 6:33 pm
Forum: DS/DSi Development
Topic: glloadmatrix 4x4?
Replies: 4
Views: 4003

Re: glloadmatrix 4x4?

I want to know how to call the function i did some research and came up with this: struct m4x4 ma; ma.m[0]=ix; ma.m[1]=iy; ma.m[4]=jx; ma.m[5]=jy; ma.m[12]=tx; ma.m[13]=ty; glLoadMatrix4x4(&ma); It compiles but my graphics dissapear off the screen. I am drawing some graphics successfully and I want ...
by slenkar
Thu Apr 21, 2011 9:28 pm
Forum: DS/DSi Development
Topic: glloadmatrix 4x4?
Replies: 4
Views: 4003

glloadmatrix 4x4?

Hi could someone give me an example of how to use glloadmatrix?

I know how it works in a game but I dont understand why it needs a const

so the example i am looking for is something like:
m[0]=0
m[1]=0
m[2]=1
m[3]=1
m[4]=1
m[5]=1
m[6]=1
m[7]=1

glLoadmatrix4x4[m]