Raven B4
  • Main Page
  • Guide
    • Setup
    • Examples
  • Documentation
    • imports
    • events
    • client
    • entity
    • network
    • world
    • render
    • gl
    • modules
    • config
    • keybinds
    • inventory
    • tile entity
    • util
    • bridge
    • http
    • json
    • packets
    • objects
Powered by GitBook
On this page
  • alpha
  • begin
  • blend
  • color
  • cull
  • depth
  • depthMask
  • disable
  • disableItemLighting
  • enable
  • enableItemLighting
  • end
  • lighting
  • lineSmooth
  • lineWidth
  • normal
  • pop
  • push
  • rotate
  • scale
  • scissor
  • scissor
  • texture2d
  • translate
  • vertex2
  • vertex3
  1. Documentation

gl

Wrappers for direct interaction with GL11 methods. Intended for advanced users only.

alpha

gl.alpha(boolean alpha);

Enables or disables alpha testing.

begin

gl.begin(int mode);

Starts specifying vertices for a primitive shape.

blend

gl.blend(boolean blend);

Enables or disables blending.

color

gl.color(float r, float g, float b, float a);

Sets the current drawing color with the specified RGBA values.

cull

gl.cull(boolean cull);

Enables or disables face culling.

depth

gl.depth(boolean depth);

Enables or disables depth testing.

depthMask

gl.depthMask(boolean depthMask);

Sets whether writing to the depth buffer is enabled or disabled.

disable

gl.disable(int cap);

Disables a specific OpenGL capability.

disableItemLighting

gl.disableItemLighting();

Disables item lighting.

enable

gl.enable(int cap);

Enables a specific OpenGL capability, such as blending or depth testing.

enableItemLighting

gl.enableItemLighting(boolean gui);

Enables item lighting, optionally for GUI items.

end

gl.end();

Completes the vertex specification.

lighting

gl.lighting(boolean lighting);

Enables or disables lighting.

lineSmooth

gl.lineSmooth(boolean lineSmooth);

Enables or disables line smoothing.

lineWidth

gl.lineWidth(float width);

Sets the width of lines in OpenGL.

normal

gl.normal(float x, float y, float z);

Specifies a normal vector for lighting calculations.

pop

gl.pop();

Pops the current matrix stack, restoring the previous transformation state.

push

gl.push();

Pushes the current matrix stack, saving the current transformation state.

rotate

gl.rotate(float angle, float x, float y, float z);

Applies rotation to the current transformation matrix around the specified axis.

scale

gl.scale(float x, float y, float z);

Applies scaling to the current transformation matrix.

scissor

gl.scissor(boolean scissor);

Enables or disables scissoring.

scissor

gl.scissor(int x, int y, int width, int height);

Sets the scissor box to the specified rectangle, restricting rendering operations to the defined area.

texture2d

gl.texture2d(boolean texture2d);

Enables or disables 2D texturing.

translate

gl.translate(float x, float y, float z);

Applies translation to the current transformation matrix.

vertex2

gl.vertex2(float x, float y);

Specifies a vertex with 2D coordinates.

vertex3

gl.vertex3(float x, float y, float z);

Specifies a vertex with 3D coordinates.

Last updated 9 months ago