Home>
Someday I was told and I was caught in the search, so glMultMatrixf (const GLfloat * m);
I want to use, but it seems that 4 * 4 can be done
float e [16] = {cos (angle * M_PI/180) * px, 0 * py, sin (angle * M_PI/180) * pz, 0,
0,1 * py, 0, 0,
sin (angle * M_PI/180) * px, 0 * py, cos (angle * M_PI/180) * pz, 0,
0 * px, 0 * py, 0 * pz, 1};
qx = 0.003 * qx;
qy = 0.003 * qy;
qz = 0.003 * qz;
glNormal3f (MeshNormals [3 * b [0] +0], MeshNormals [3 * b [0] + 1], MeshNormals [3 * b [0] +2]);
glTexCoord2f (Texture [2 * c [0] +0], Texture [2 * c [0] + 1]);
glMultMatrixf (e);
glVertex3f (qx, qy, qz);
I'm not sure about glMultMatrixf (const GLfloat * m), so please tell me.

Answer # 1
Related articles
 python 3x  about array calculation in python
 about java calculation formula
 machine learning  about sparse matrix (csr)
 about drawing of opengl
 about lottery (probability calculation)
 python  about float type calculation problem (easy and sorry)
 about python numpy calculation
 i want to perform matrix calculation with glsl
 python  i want to plot the results of a complex matrix calculation
 about calculation formula in java
 about java calculation formula
 about java calculation formula
 python 3x  about the calculation of cross entropy in pytorch
 python 3x  i would like to ask about the amount of calculation of the following code
 python  about gpu calculation speed of xgboost
 python  about batch calculation of pandas data frame
 about the display of the contents of the matrix
 opengl  shader name i want to know about the extension
 python  i want to calculate matrix calculation with numpy for statement with numpydot
Trends
 python  you may need to restart the kernel to use updated packages error
 php  coincheck api authentication doesn't work
 php  i would like to introduce the coincheck api so that i can make payments with bitcoin on my ec site
 [php] i want to get account information using coincheck api
 the emulator process for avd pixel_2_api_29 was killed occurred when the android studio emulator was started, so i would like to
 javascript  how to check if an element exists in puppeteer
 python 3x  typeerror: 'method' object is not subscriptable
 i want to call a child component method from a parent in vuejs
 dart  flutter: the instance member'stars' can't be accessed in an initializer error
 xcode  pod install [!] no `podfile 'found in the project directory
"
glMultMatrixf
"Please google" is the answer?(It seems that you need to pay attention to the order of the elements specified in the argument)
Prior knowledge:
OpenGL holds (?) Matrix groups in a global way, and operations are performed using them.
Therefore, we need to set the matrix group to a value that produces the desired operation result.
As a means, for example, update the contents of the matrix by the following procedure:
glMatrixMode ()
Select the matrix you are about to play withif needed
glLoadIdentity ()
Update to the identity matrix withglRotated ()
ButgluPerspective ()
If you use a prepared function such asMatrix contents = (current) matrix contents * Matrix calculated internally by the function
The contents of the matrix are updated in the form of.
… But, in step 3, if OpenGL doesn't provide a function that corresponds to what you want to do, that is,
Matrix contents = (current) matrix contents * Matrix to multiply for update
There is a case where you want to arbitrarily give a "matrix you want to multiply for updating", and the function for that is
glMultMatrixf ()
ButSame d ()
That is the one.Functions of glMultMatrixf () (and d ()):
As mentioned above, now
glMatrixMode ()
The contents of the matrix are updated by multiplying the matrix selected in step by the matrix given by the argument.As mentioned above, the direction of multiplication is
glRotated ()
And so onHang from the right sideIt will be in shape.