View Full Version : How to multiply point by Current Matrix?
10-23-2001, 03:51 PM
I just want to multiply my vertex point by the current matrix. Is there an openGL routine to do this? Do I need to put my point into a 4X4 matrix first and then multiply?
10-23-2001, 05:39 PM
I've been doing a little research and it sounds like doing a "glGetFloatV" on the current matrix is very slow. Is the best way then, to keep an internal copy of my matrix and do calculations with it and load it into the current matrix when needed?
If you must do it every frame, I suggest you keep and internal copy of the matrix, and never use any glGet* whatsoever. If you need to do it a few time now and then, a glGet won't hurt that much.
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.