glLoadMatrixf for LWJGL 3.x

Started by adamtg48, February 19, 2017, 23:59:48

Previous topic - Next topic

adamtg48

Hello,

Is there a replacement for glLoadMatrixf?  I am creating my own matrix stack, and i am a looking for a simple API to apply a matrix.  I am not quite ready to attack shaders, unless it is the only method, that i guess i will be ready...

thank you,
-=- adamtg48

Kai

I am not quite sure what you mean by "replacement" for GL11.glLoadMatrixf() and how such a potential replacement should behave differently than the existing GL11.glLoadMatrixf(), given that you are using the fixed-function pipeline.
GL11.glLoadMatrixf() is _the only_ way in OpenGL to load a matrix using the fixed-function pipeline (without multiplying it onto the current/active matrix stack). If you want to post-multiply a given matrix to the active matrix stack, use GL11.glMultMatrixf();

adamtg48

Thank you for your reply.  I am pretty new to OpenGL, so i might be confused.  According to:
https://javadoc.lwjgl.org/org/lwjgl/opengl/GL11.html#glLoadMatrixf-float:A-

it says

QuoteglLoadMatrixf(float[] m)
OpenGL SDK Reference - This function is deprecated and unavailable in the Core profile

so i thought there would be a replacement for this function.

Kai

Quote from: adamtg48 on February 20, 2017, 13:46:33
Quote... This function is deprecated and unavailable in the Core profile
so i thought there would be a replacement for this function.
I see. Yes, "deprecated" there means: You should use shaders instead.