Hi all, sorry to introduce myself to the forums with a help request.
I’ve been producing a basic scene graph for a graphics project and whilst attempting to make nodes to represent Materials i’ve needed to store the properties of previous materials within the tree for reapplication when heading back past each material for a new traversal.
After a quick peruse of the API, glGetMaterialfv seems the ideal method for grabbing current material settings. The problem is, i can’t find any examples of it’s usage and i’ve not had much luck getting it to work so far.
I’ve tried using the floatBuffer technique but have had no joy getting workable values from a direct view to a byteBuffer.
The glGetMaterialfv(int face, int pname, float[] params, int params_offset) is an enigma to me also
Can anyone give me a quick example of the technique in action?
Many thanks in advance!