Advertisement

inline assembly, C++

Started by September 28, 2006 06:29 PM
10 comments, last by GameDev.net 18 years, 3 months ago
Looks like you guys are right. Thanks.
Sig: http://glhlib.sourceforge.net
an open source GLU replacement library. Much more modern than GLU.
float matrix[16], inverse_matrix[16];
glhLoadIdentityf2(matrix);
glhTranslatef2(matrix, 0.0, 0.0, 5.0);
glhRotateAboutXf2(matrix, angleInRadians);
glhScalef2(matrix, 1.0, 1.0, -1.0);
glhQuickInvertMatrixf2(matrix, inverse_matrix);
glUniformMatrix4fv(uniformLocation1, 1, FALSE, matrix);
glUniformMatrix4fv(uniformLocation2, 1, FALSE, inverse_matrix);
FYI:gcc can be told to recognize/accept a subset of the original Intel syntax accepted by the majority of native x86 compilers

This topic is closed to new replies.

Advertisement