public class GLProfiler extends Object
GL20Interceptor,
GL30Interceptor| Constructor and Description |
|---|
GLProfiler(Graphics graphics)
Create a new instance of GLProfiler to monitor a
Graphics instance's gl calls |
| Modifier and Type | Method and Description |
|---|---|
void |
disable()
Disables profiling by resetting the
GL20 and GL30 instances with the original ones. |
void |
enable()
Enables profiling by replacing the
GL20 and GL30 instances with profiling ones. |
int |
getCalls() |
int |
getDrawCalls() |
GLErrorListener |
getListener() |
int |
getShaderSwitches() |
int |
getTextureBindings() |
FloatCounter |
getVertexCount() |
boolean |
isEnabled() |
void |
reset()
Will reset the statistical information which has been collected so far.
|
void |
setListener(GLErrorListener errorListener)
Set the current listener for the
GLProfiler to errorListener |
public void enable()
GL20 and GL30 instances with profiling ones.public void disable()
GL20 and GL30 instances with the original ones.public void setListener(GLErrorListener errorListener)
GLProfiler to errorListenerpublic GLErrorListener getListener()
GLErrorListenerpublic boolean isEnabled()
public int getCalls()
public int getTextureBindings()
public int getDrawCalls()
public int getShaderSwitches()
public FloatCounter getVertexCount()
FloatCounter containing information about rendered vertices since the last resetpublic void reset()
Copyright © 2021. All rights reserved.