Package com.prineside.luaj.mapping.parts
Class LJ_GDX_graphics_g3d_utils.TextureBinder_T.LIP
java.lang.Object
com.prineside.luaj.mapping.InterfaceProxy
com.prineside.luaj.mapping.parts.LJ_GDX_graphics_g3d_utils.TextureBinder_T.LIP
- All Implemented Interfaces:
com.badlogic.gdx.graphics.g3d.utils.TextureBinder
,com.esotericsoftware.kryo.KryoSerializable
- Enclosing class:
- LJ_GDX_graphics_g3d_utils.TextureBinder_T
public static class LJ_GDX_graphics_g3d_utils.TextureBinder_T.LIP
extends InterfaceProxy
implements com.badlogic.gdx.graphics.g3d.utils.TextureBinder
-
Field Summary
Fields inherited from class com.prineside.luaj.mapping.InterfaceProxy
luaObj
-
Method Summary
Modifier and TypeMethodDescriptionvoid
begin()
Prepares the binder for operation, must be matched with a call toTextureBinder.end()
.int
bind
(com.badlogic.gdx.graphics.g3d.utils.TextureDescriptor p1) Binds the texture to an available unit and applies the filters in the descriptor.int
bind
(com.badlogic.gdx.graphics.GLTexture p1) Binds the texture to an available unit.void
end()
Disables all used texture units and unbinds textures.int
int
void
Resets the bind/reuse countsMethods inherited from class com.prineside.luaj.mapping.InterfaceProxy
getLuaObj, read, write
-
Method Details
-
begin
public void begin()Description copied from interface:com.badlogic.gdx.graphics.g3d.utils.TextureBinder
Prepares the binder for operation, must be matched with a call toTextureBinder.end()
.- Specified by:
begin
in interfacecom.badlogic.gdx.graphics.g3d.utils.TextureBinder
-
bind
public int bind(com.badlogic.gdx.graphics.GLTexture p1) Description copied from interface:com.badlogic.gdx.graphics.g3d.utils.TextureBinder
Binds the texture to an available unit.- Specified by:
bind
in interfacecom.badlogic.gdx.graphics.g3d.utils.TextureBinder
- Parameters:
p1
- theTexture
- Returns:
- the unit the texture was bound to
-
bind
public int bind(com.badlogic.gdx.graphics.g3d.utils.TextureDescriptor p1) Description copied from interface:com.badlogic.gdx.graphics.g3d.utils.TextureBinder
Binds the texture to an available unit and applies the filters in the descriptor.- Specified by:
bind
in interfacecom.badlogic.gdx.graphics.g3d.utils.TextureBinder
- Parameters:
p1
- theTextureDescriptor
- Returns:
- the unit the texture was bound to
-
end
public void end()Description copied from interface:com.badlogic.gdx.graphics.g3d.utils.TextureBinder
Disables all used texture units and unbinds textures. Resets the counts.- Specified by:
end
in interfacecom.badlogic.gdx.graphics.g3d.utils.TextureBinder
-
getBindCount
public int getBindCount()- Specified by:
getBindCount
in interfacecom.badlogic.gdx.graphics.g3d.utils.TextureBinder
- Returns:
- the number of binds actually executed since the last call to
TextureBinder.resetCounts()
-
getReuseCount
public int getReuseCount()- Specified by:
getReuseCount
in interfacecom.badlogic.gdx.graphics.g3d.utils.TextureBinder
- Returns:
- the number of binds that could be avoided by reuse
-
resetCounts
public void resetCounts()Description copied from interface:com.badlogic.gdx.graphics.g3d.utils.TextureBinder
Resets the bind/reuse counts- Specified by:
resetCounts
in interfacecom.badlogic.gdx.graphics.g3d.utils.TextureBinder
-