Uses of Class
com.badlogic.gdx.graphics.glutils.ShaderProgram
-
-
Uses of ShaderProgram in com.badlogic.gdx.assets.loaders
Methods in com.badlogic.gdx.assets.loaders that return ShaderProgram Modifier and Type Method Description ShaderProgramShaderProgramLoader. loadSync(AssetManager manager, java.lang.String fileName, FileHandle file, ShaderProgramLoader.ShaderProgramParameter parameter) -
Uses of ShaderProgram in com.badlogic.gdx.graphics
Methods in com.badlogic.gdx.graphics with parameters of type ShaderProgram Modifier and Type Method Description voidMesh. bind(ShaderProgram shader)Binds the underlyingVertexBufferObjectandIndexBufferObjectif indices where given.voidMesh. bind(ShaderProgram shader, int[] locations, int[] instanceLocations)Binds the underlyingVertexBufferObjectandIndexBufferObjectif indices where given.voidMesh. render(ShaderProgram shader, int primitiveType)Renders the mesh using the given primitive type.voidMesh. render(ShaderProgram shader, int primitiveType, int offset, int count)Renders the mesh using the given primitive type.voidMesh. render(ShaderProgram shader, int primitiveType, int offset, int count, boolean autoBind)Renders the mesh using the given primitive type.voidMesh. unbind(ShaderProgram shader)Unbinds the underlyingVertexBufferObjectandIndexBufferObjectis indices were given.voidMesh. unbind(ShaderProgram shader, int[] locations, int[] instanceLocations)Unbinds the underlyingVertexBufferObjectandIndexBufferObjectis indices were given. -
Uses of ShaderProgram in com.badlogic.gdx.graphics.g2d
Methods in com.badlogic.gdx.graphics.g2d that return ShaderProgram Modifier and Type Method Description static ShaderProgramSpriteBatch. createDefaultShader()Returns a new instance of the default shader used by SpriteBatch for GL2 when no shader is specified.static ShaderProgramDistanceFieldFont. createDistanceFieldShader()Returns a new instance of the distance field shader, see https://libgdx.com/wiki/graphics/2d/fonts/distance-field-fonts if the u_smoothing uniform > 0.0.ShaderProgramSpriteCache. getCustomShader()Returns the custom shader, or null if the default shader is being used.ShaderProgramBatch. getShader()ShaderProgramPolygonSpriteBatch. getShader()ShaderProgramSpriteBatch. getShader()Methods in com.badlogic.gdx.graphics.g2d with parameters of type ShaderProgram Modifier and Type Method Description voidBatch. setShader(ShaderProgram shader)Sets the shader to be used in a GLES 2.0 environment.voidPolygonSpriteBatch. setShader(ShaderProgram shader)voidSpriteBatch. setShader(ShaderProgram shader)voidSpriteCache. setShader(ShaderProgram shader)Sets the shader to be used in a GLES 2.0 environment.Constructors in com.badlogic.gdx.graphics.g2d with parameters of type ShaderProgram Constructor Description CpuSpriteBatch(int size, ShaderProgram defaultShader)Constructs a CpuSpriteBatch with a custom shader.PolygonSpriteBatch(int maxVertices, int maxTriangles, ShaderProgram defaultShader)Constructs a new PolygonSpriteBatch.PolygonSpriteBatch(int size, ShaderProgram defaultShader)Constructs a PolygonSpriteBatch with the specified shader, size vertices and size * 2 triangles.SpriteBatch(int size, ShaderProgram defaultShader)Constructs a new SpriteBatch.SpriteCache(int size, ShaderProgram shader, boolean useIndices)Creates a cache with the specified size and OpenGL ES 2.0 shader. -
Uses of ShaderProgram in com.badlogic.gdx.graphics.g3d.decals
Methods in com.badlogic.gdx.graphics.g3d.decals that return ShaderProgram Modifier and Type Method Description ShaderProgramCameraGroupStrategy. getGroupShader(int group)ShaderProgramGroupStrategy. getGroupShader(int group)Returns the shader to be used for the group.ShaderProgramSimpleOrthoGroupStrategy. getGroupShader(int group)Methods in com.badlogic.gdx.graphics.g3d.decals with parameters of type ShaderProgram Modifier and Type Method Description protected voidDecalBatch. flush(ShaderProgram shader, int verticesPosition)Flushes vertices[0,verticesPosition[ to GL verticesPosition % Decal.SIZE must equal 0 -
Uses of ShaderProgram in com.badlogic.gdx.graphics.g3d.model
Methods in com.badlogic.gdx.graphics.g3d.model with parameters of type ShaderProgram Modifier and Type Method Description voidMeshPart. render(ShaderProgram shader)Renders the mesh part using the specified shader, must be called afterbind().voidMeshPart. render(ShaderProgram shader, boolean autoBind)Renders the mesh part using the specified shader, must be called afterbind(). -
Uses of ShaderProgram in com.badlogic.gdx.graphics.g3d.particles
Constructors in com.badlogic.gdx.graphics.g3d.particles with parameters of type ShaderProgram Constructor Description ParticleShader(Renderable renderable, ParticleShader.Config config, ShaderProgram shaderProgram) -
Uses of ShaderProgram in com.badlogic.gdx.graphics.g3d.shaders
Fields in com.badlogic.gdx.graphics.g3d.shaders declared as ShaderProgram Modifier and Type Field Description ShaderProgramBaseShader. programMethods in com.badlogic.gdx.graphics.g3d.shaders with parameters of type ShaderProgram Modifier and Type Method Description voidBaseShader. init(ShaderProgram program, Renderable renderable)Initialize this shader, causing all registered uniforms/attributes to be fetched.Constructors in com.badlogic.gdx.graphics.g3d.shaders with parameters of type ShaderProgram Constructor Description DefaultShader(Renderable renderable, DefaultShader.Config config, ShaderProgram shaderProgram)DepthShader(Renderable renderable, DepthShader.Config config, ShaderProgram shaderProgram) -
Uses of ShaderProgram in com.badlogic.gdx.graphics.glutils
Methods in com.badlogic.gdx.graphics.glutils that return ShaderProgram Modifier and Type Method Description static ShaderProgramImmediateModeRenderer20. createDefaultShader(boolean hasNormals, boolean hasColors, int numTexCoords)Returns a new instance of the default shader used by SpriteBatch for GL2 when no shader is specified.ShaderProgramImmediateModeRenderer20. getShader()Methods in com.badlogic.gdx.graphics.glutils with parameters of type ShaderProgram Modifier and Type Method Description voidInstanceBufferObject. bind(ShaderProgram shader)Binds this InstanceBufferObject for rendering via glDrawArraysInstanced or glDrawElementsInstancedvoidInstanceBufferObject. bind(ShaderProgram shader, int[] locations)voidInstanceBufferObjectSubData. bind(ShaderProgram shader)Binds this InstanceBufferObject for rendering via glDrawArraysInstanced or glDrawElementsInstancedvoidInstanceBufferObjectSubData. bind(ShaderProgram shader, int[] locations)voidInstanceData. bind(ShaderProgram shader)Binds this InstanceData for rendering via glDrawArraysInstanced or glDrawElementsInstanced.voidInstanceData. bind(ShaderProgram shader, int[] locations)Binds this InstanceData for rendering via glDrawArraysInstanced or glDrawElementsInstanced.voidVertexArray. bind(ShaderProgram shader)voidVertexArray. bind(ShaderProgram shader, int[] locations)voidVertexBufferObject. bind(ShaderProgram shader)Binds this VertexBufferObject for rendering via glDrawArrays or glDrawElementsvoidVertexBufferObject. bind(ShaderProgram shader, int[] locations)voidVertexBufferObjectSubData. bind(ShaderProgram shader)Binds this VertexBufferObject for rendering via glDrawArrays or glDrawElementsvoidVertexBufferObjectSubData. bind(ShaderProgram shader, int[] locations)voidVertexBufferObjectWithVAO. bind(ShaderProgram shader)Binds this VertexBufferObject for rendering via glDrawArrays or glDrawElementsvoidVertexBufferObjectWithVAO. bind(ShaderProgram shader, int[] locations)voidVertexData. bind(ShaderProgram shader)Binds this VertexData for rendering via glDrawArrays or glDrawElements.voidVertexData. bind(ShaderProgram shader, int[] locations)Binds this VertexData for rendering via glDrawArrays or glDrawElements.voidImmediateModeRenderer20. setShader(ShaderProgram shader)voidInstanceBufferObject. unbind(ShaderProgram shader)Unbinds this InstanceBufferObject.voidInstanceBufferObject. unbind(ShaderProgram shader, int[] locations)voidInstanceBufferObjectSubData. unbind(ShaderProgram shader)Unbinds this InstanceBufferObject.voidInstanceBufferObjectSubData. unbind(ShaderProgram shader, int[] locations)voidInstanceData. unbind(ShaderProgram shader)Unbinds this InstanceData.voidInstanceData. unbind(ShaderProgram shader, int[] locations)Unbinds this InstanceData.voidVertexArray. unbind(ShaderProgram shader)Unbinds this VertexBufferObject.voidVertexArray. unbind(ShaderProgram shader, int[] locations)voidVertexBufferObject. unbind(ShaderProgram shader)Unbinds this VertexBufferObject.voidVertexBufferObject. unbind(ShaderProgram shader, int[] locations)voidVertexBufferObjectSubData. unbind(ShaderProgram shader)Unbinds this VertexBufferObject.voidVertexBufferObjectSubData. unbind(ShaderProgram shader, int[] locations)voidVertexBufferObjectWithVAO. unbind(ShaderProgram shader)Unbinds this VertexBufferObject.voidVertexBufferObjectWithVAO. unbind(ShaderProgram shader, int[] locations)voidVertexData. unbind(ShaderProgram shader)Unbinds this VertexData.voidVertexData. unbind(ShaderProgram shader, int[] locations)Unbinds this VertexData.Constructors in com.badlogic.gdx.graphics.glutils with parameters of type ShaderProgram Constructor Description ImmediateModeRenderer20(int maxVertices, boolean hasNormals, boolean hasColors, int numTexCoords, ShaderProgram shader)ShapeRenderer(int maxVertices, ShaderProgram defaultShader)
-