I want fully C support

A place to discuss everything related to Newton Dynamics.

Moderators: Sascha Willems, walaber

I want fully C support

Postby MASM_Fanatics » Mon Oct 19, 2009 6:24 am

Hai all,
Im a newbie on HLL world. I dont know and cannot understand C++ and all of its variant. I only know C since it is the only simple language.
I want Newton Dynamic have a C interface especially on matrix function, since I dont understand matrix. That is my opinion, dont need to push yourself if my request is make you troubled.
MASM_Fanatics
 
Posts: 6
Joined: Mon Oct 19, 2009 6:18 am

Re: I want fully C support

Postby JernejL » Mon Oct 19, 2009 8:28 am

MASM_Fanatics wrote:Hai all,
Im a newbie on HLL world. I dont know and cannot understand C++ and all of its variant. I only know C since it is the only simple language.
I want Newton Dynamic have a C interface especially on matrix function, since I dont understand matrix. That is my opinion, dont need to push yourself if my request is make you troubled.


Newton DOES uses a plain C interface api, only the demos are written in c++, in newton matrix is a simple array of 4 * 4 floats (float type depends if you use single or double version of the library).
Help improving the Newton Game Dynamics WIKI
User avatar
JernejL
 
Posts: 1587
Joined: Mon Dec 06, 2004 2:00 pm
Location: Slovenia

Re: I want fully C support

Postby MASM_Fanatics » Mon Oct 19, 2009 9:20 am

Hi delfi,
Thanks for your answer, I want to know how to set a position using matrix.
MASM_Fanatics
 
Posts: 6
Joined: Mon Oct 19, 2009 6:18 am

Re: I want fully C support

Postby Carli » Mon Oct 19, 2009 11:22 am

you get it with:

Code: Select all
glLoadIdentity();
glTranslatef(posX,posY,posZ);
glRotatef(rotate_angle,0,1,0);
glGetfv(GL_MODELVIEW_MATRIX, &matrix[0][0]);

if my C is right (i prefer pascal)

this method uses the gl library that means it works very fast i think (SSE optimization).
Carli
 
Posts: 245
Joined: Fri Oct 02, 2009 5:28 am

Re: I want fully C support

Postby JernejL » Mon Oct 19, 2009 2:13 pm

MASM_Fanatics wrote:Hi delfi,
Thanks for your answer, I want to know how to set a position using matrix.


You already made a topic about it and received a answer there...
viewtopic.php?f=9&t=5460&p=39147
Help improving the Newton Game Dynamics WIKI
User avatar
JernejL
 
Posts: 1587
Joined: Mon Dec 06, 2004 2:00 pm
Location: Slovenia

Re: I want fully C support

Postby MASM_Fanatics » Tue Oct 20, 2009 10:58 pm

Delfi wrote:
MASM_Fanatics wrote:Hi delfi,
Thanks for your answer, I want to know how to set a position using matrix.


You already made a topic about it and received a answer there...
viewtopic.php?f=9&t=5460&p=39147



OKay thanks.
MASM_Fanatics
 
Posts: 6
Joined: Mon Oct 19, 2009 6:18 am


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest