gVirtualXRay  2.0.10
VirtualX-RayImagingLibraryonGPU
Namespaces | Functions
OpenGLUtilities.inl File Reference

Some utility functions about OpenGL. Now supports GLSL450 and OpenGL 4.5. More...

#include <cmath>
#include "gVirtualXRay/OpenGLException.h"
#include "gVirtualXRay/OutOfBoundsException.h"
#include "gVirtualXRay/FBOException.h"
#include "gVirtualXRay/Types.h"
#include "gVirtualXRay/ConstantValues.h"
Include dependency graph for OpenGLUtilities.inl:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 gVirtualXRay
 

Functions

void gVirtualXRay::pushProjectionMatrix ()
 Add the current matrix to the projection matrix stack. More...
 
void gVirtualXRay::pushModelViewMatrix ()
 Add the current matrix to the model/view matrix stack. More...
 
void gVirtualXRay::popProjectionMatrix ()
 
void gVirtualXRay::popModelViewMatrix ()
 
void gVirtualXRay::loadIdentityProjectionMatrix ()
 Replace the projection matrix by the identity matrix. More...
 
void gVirtualXRay::loadIdentityModelViewMatrix ()
 Replace the model/view matrix by the identity matrix. More...
 
MATRIX4 gVirtualXRay::buildOrthoProjectionMatrix (double left, double right, double bottom, double top, double near, double far)
 Create a orthographic projection matrix. More...
 
void gVirtualXRay::loadOrthoProjectionMatrix (double left, double right, double bottom, double top, double near, double far)
 Replace the projection matrix by a orthographic projection matrix. More...
 
void gVirtualXRay::loadFrustumProjectionMatrix (double left, double right, double bottom, double top, double near, double far)
 Replace the projection matrix by a perspective projection matrix. More...
 
MATRIX4 gVirtualXRay::buildFrustumProjectionMatrix (double left, double right, double bottom, double top, double near, double far)
 Create a perspective projection matrix. More...
 
void gVirtualXRay::multiplyOrthoProjectionMatrix (double left, double right, double bottom, double top, double nearPlane, double farPlane)
 
MATRIX4 gVirtualXRay::buildPerspectiveProjectionMatrix (double fovy, double aspect, double zNear, double zFar)
 Create a perspective projection matrix. More...
 
void gVirtualXRay::loadPerspectiveProjectionMatrix (double fovy, double aspect, double zNear, double zFar)
 Replace the projection matrix by a perspective projection matrix. More...
 
void gVirtualXRay::multiplyPerspectiveProjectionMatrix (double fovy, double aspect, double zNear, double zFar)
 
MATRIX4 gVirtualXRay::buildLookAtModelViewMatrix (const VEC3 &eye, const VEC3 &centre, const VEC3 &up)
 Create a modelling-viewing matrix. More...
 
MATRIX4 gVirtualXRay::buildLookAtModelViewMatrix (double eyeX, double eyeY, double eyeZ, double centreX, double centreY, double centreZ, double upX, double upY, double upZ)
 Create a modelling-viewing matrix. More...
 
void gVirtualXRay::loadLookAtModelViewMatrix (const VEC3 &eye, const VEC3 &centre, const VEC3 &up)
 Replace the modelling-viewing matrix by a viewing transformation matrix. More...
 
void gVirtualXRay::loadLookAtModelViewMatrix (double eyeX, double eyeY, double eyeZ, double centreX, double centreY, double centreZ, double upX, double upY, double upZ)
 Replace the modelling-viewing matrix by a viewing transformation matrix. More...
 
std::string gVirtualXRay::getShaderTypeID (const std::type_info &aTypeID)
 
std::string gVirtualXRay::getShaderImageType (const std::type_info &aTypeID)
 
std::string gVirtualXRay::getShaderPixelType (const std::type_info &aTypeID)
 
std::string gVirtualXRay::getShaderRGBAPixelType (const std::type_info &aTypeID)
 
int gVirtualXRay::getShaderOpenGLType (const std::type_info &aTypeID)
 

Detailed Description

Some utility functions about OpenGL. Now supports GLSL450 and OpenGL 4.5.

Version
1.0
Date
17/04/2024
Author
Prof Franck P. Vidal

License BSD 3-Clause License.

For details on use and redistribution please refer to http://opensource.org/licenses/BSD-3-Clause

Copyright (c) by Dr Franck P. Vidal, Bangor University, Fev 2020-Sept 2023, version 1.1, BSD 3-Clause License (c) by Prof Franck P. Vidal (franc.nosp@m.k.vi.nosp@m.dal@s.nosp@m.tfc..nosp@m.ac.uk), UK Research and Innovation, Oct 2023-present, version 1.1, BSD 3-Clause License

Definition in file OpenGLUtilities.inl.