Skip to content

Commit

Permalink
sokol_gl.h: update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
floooh committed Jul 10, 2023
1 parent 5b282c3 commit b1c29d5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions util/sokol_gl.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
FEATURE OVERVIEW:
=================
sokol_gl.h implements a subset of the OpenGLES 1.x feature set useful for
when you just want to quickly render a bunch of colored triangles or
when you just want to quickly render a bunch of triangles or
lines without having to mess with buffers and shaders.
The current feature set is mostly useful for debug visualizations
Expand Down Expand Up @@ -233,7 +233,11 @@
sgl_enable_texture()
sgl_disable_texture()
sgl_texture(sg_image img)
sgl_texture(sg_image img, sg_sampler smp)
NOTE: the img and smp handles can be invalid (SG_INVALID_ID), in this
case, sokol-gl will fall back to the internal default (white) texture
and sampler.
--- set the current viewport and scissor rect with:
Expand Down

0 comments on commit b1c29d5

Please sign in to comment.