Class CanvasImpl
java.lang.Object
dev.pfaff.altargui.CanvasImpl
- All Implemented Interfaces:
Canvas
,AutoCloseable
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
draw()
void
void
internalPushScissor
(float x, float y, float width, float height) boolean
isDebugLayerEnabled
(DebugLayer layer) void
iSpecUpload
(RenderObject uploadable, int size) void
nextDebugLayer
(boolean forward) int
void
reset()
void
void
setWindowProps
(double scaleFactor, int windowWidth, int windowHeight) texAlloc()
void
upload
(RenderObject uploadable)
-
Field Details
-
DRAW_TAGS
-
DEBUG_LAYERS
-
TEXTURE_SIZE
public static final int TEXTURE_SIZE -
enabledDebugLayers
-
-
Constructor Details
-
CanvasImpl
public CanvasImpl()
-
-
Method Details
-
nextDebugLayer
public void nextDebugLayer(boolean forward) -
isDebugLayerEnabled
- Specified by:
isDebugLayerEnabled
in interfaceCanvas
-
reset
public void reset() -
setWindowProps
public void setWindowProps(double scaleFactor, int windowWidth, int windowHeight) -
renderBufferByteCount
public int renderBufferByteCount() -
texAlloc
-
internalPushScissor
public void internalPushScissor(float x, float y, float width, float height) -
internalPopScissor
public void internalPopScissor() -
setLayer
-
iSpecUpload
-
upload
-
draw
public void draw() -
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-