public class JoglGpuContext extends Object implements GpuContext
| Modifier and Type | Method and Description |
|---|---|
int |
bindStagingBuffer(StagingBuffer stagingBuffer) |
int |
bindStagingBufferId(int id) |
int |
bindTexture(Texture texture) |
void |
bindTexture(Texture texture,
int unit) |
int |
bindTextureId(int id,
int numTexDimensions) |
void |
delete(Texture texture) |
static JoglGpuContext |
get(com.jogamp.opengl.GL3 gl) |
int |
getPboIdHack(StagingBuffer stagingBuffer) |
int |
getProgramIdHack(Shader shader) |
int |
getTextureIdHack(Texture texture) |
SetUniforms |
getUniformSetter(Shader shader) |
Buffer |
map(StagingBuffer stagingBuffer) |
void |
registerTexture(Texture texture,
int id) |
void |
texSubImage3D(StagingBuffer stagingBuffer,
Texture3D texture,
int xoffset,
int yoffset,
int zoffset,
int width,
int height,
int depth,
long pixels_buffer_offset) |
void |
texSubImage3D(Texture3D texture,
int xoffset,
int yoffset,
int zoffset,
int width,
int height,
int depth,
Buffer pixels) |
void |
unmap(StagingBuffer stagingBuffer) |
void |
use(Shader shader) |
public void use(Shader shader)
use in interface GpuContextpublic SetUniforms getUniformSetter(Shader shader)
getUniformSetter in interface GpuContextpublic int bindStagingBuffer(StagingBuffer stagingBuffer)
bindStagingBuffer in interface GpuContextstagingBuffer - staging buffer to bindpublic int bindStagingBufferId(int id)
bindStagingBufferId in interface GpuContextid - staging buffer id to bindpublic int bindTexture(Texture texture)
bindTexture in interface GpuContexttexture - texture to bindpublic void bindTexture(Texture texture, int unit)
bindTexture in interface GpuContexttexture - texture to bindunit - texture unit to bind topublic int bindTextureId(int id,
int numTexDimensions)
bindTextureId in interface GpuContextid - texture id to bindnumTexDimensions - texture target: 1, 2, or 3public Buffer map(StagingBuffer stagingBuffer)
map in interface GpuContextpublic void unmap(StagingBuffer stagingBuffer)
unmap in interface GpuContextpublic void delete(Texture texture)
delete in interface GpuContextpublic void texSubImage3D(StagingBuffer stagingBuffer, Texture3D texture, int xoffset, int yoffset, int zoffset, int width, int height, int depth, long pixels_buffer_offset)
texSubImage3D in interface GpuContextpublic void texSubImage3D(Texture3D texture, int xoffset, int yoffset, int zoffset, int width, int height, int depth, Buffer pixels)
texSubImage3D in interface GpuContextpublic static JoglGpuContext get(com.jogamp.opengl.GL3 gl)
public int getPboIdHack(StagingBuffer stagingBuffer)
public int getTextureIdHack(Texture texture)
public int getProgramIdHack(Shader shader)
public void registerTexture(Texture texture, int id)
Copyright © 2018–2025 BigDataViewer. All rights reserved.