Thrown by the debug build library of the LWJGL if any OpenGL operation causes an error.
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static int | |
| pack-priv static int | Returns: the size, in elements, of the imageThe format of the image (example: GL_RGBA) format, int The type of the image elements (example: GL_UNSIGNED_BYTE) type, int The width of the image width, int The height of the image (1 for 1D images) height, int The depth of the image (1 for 2D images) depth)Calculate the storage required for an image in elements |
| private static int | Returns: the size, in bytes, of the imageThe format of the image (example: GL_RGBA) format, int The type of the image elements (example: GL_UNSIGNED_BYTE) type, int The width of the image width, int The height of the image (1 for 1D images) height, int The depth of the image (1 for 2D images) depth)Calculate the storage required for an image in bytes. |
| pack-priv static int | |
| private static int | |
| pack-priv static int | |
| private static int | |
| pack-priv static int | |
| private static int | |
| pack-priv static void | |
| pack-priv static void | |
| pack-priv static void | |
| pack-priv static void | |
| pack-priv static void | |
| pack-priv static void | |
| pack-priv static void | |
| pack-priv static void |
| GLChecks | back to summary |
|---|---|
| private GLChecks() Static methods only! | |
| calculateBytesPerPixel | back to summary |
|---|---|
| private static int calculateBytesPerPixel(int format, int type) | |
| calculateImageStorage | back to summary |
|---|---|
| pack-priv static int calculateImageStorage(Buffer buffer, int format, int type, int width, int height, int depth) Calculate the storage required for an image in elements
| |
| calculateImageStorage | back to summary |
|---|---|
| private static int calculateImageStorage(int format, int type, int width, int height, int depth) Calculate the storage required for an image in bytes.
| |
| calculateTexImage1DStorage | back to summary |
|---|---|
| pack-priv static int calculateTexImage1DStorage(Buffer buffer, int format, int type, int width) | |
| calculateTexImage1DStorage | back to summary |
|---|---|
| private static int calculateTexImage1DStorage(int format, int type, int width) | |
| calculateTexImage2DStorage | back to summary |
|---|---|
| pack-priv static int calculateTexImage2DStorage(Buffer buffer, int format, int type, int width, int height) | |
| calculateTexImage2DStorage | back to summary |
|---|---|
| private static int calculateTexImage2DStorage(int format, int type, int width, int height) | |
| calculateTexImage3DStorage | back to summary |
|---|---|
| pack-priv static int calculateTexImage3DStorage(Buffer buffer, int format, int type, int width, int height, int depth) | |
| calculateTexImage3DStorage | back to summary |
|---|---|
| private static int calculateTexImage3DStorage(int format, int type, int width, int height, int depth) | |
| ensureArrayVBOdisabled | back to summary |
|---|---|
| pack-priv static void ensureArrayVBOdisabled() Helper method to ensure that array buffer objects are disabled. If they are enabled, we'll throw an OpenGLException | |
| ensureArrayVBOenabled | back to summary |
|---|---|
| pack-priv static void ensureArrayVBOenabled() Helper method to ensure that array buffer objects are enabled. If they are disabled, we'll throw an OpenGLException | |
| ensureElementVBOdisabled | back to summary |
|---|---|
| pack-priv static void ensureElementVBOdisabled() Helper method to ensure that element array buffer objects are disabled. If they are enabled, we'll throw an OpenGLException | |
| ensureElementVBOenabled | back to summary |
|---|---|
| pack-priv static void ensureElementVBOenabled() Helper method to ensure that element array buffer objects are enabled. If they are disabled, we'll throw an OpenGLException | |
| ensurePackPBOdisabled | back to summary |
|---|---|
| pack-priv static void ensurePackPBOdisabled() Helper method to ensure that pixel pack buffer objects are disabled. If they are enabled, we'll throw an OpenGLException | |
| ensurePackPBOenabled | back to summary |
|---|---|
| pack-priv static void ensurePackPBOenabled() Helper method to ensure that pixel pack buffer objects are enabled. If they are disabled, we'll throw an OpenGLException | |
| ensureUnpackPBOdisabled | back to summary |
|---|---|
| pack-priv static void ensureUnpackPBOdisabled() Helper method to ensure that pixel unpack buffer objects are disabled. If they are enabled, we'll throw an OpenGLException | |
| ensureUnpackPBOenabled | back to summary |
|---|---|
| pack-priv static void ensureUnpackPBOenabled() Helper method to ensure that pixel unpack buffer objects are enabled. If they are disabled, we'll throw an OpenGLException | |