From b1c29d53adca764aa69bda66f024e1a0a73ce3e7 Mon Sep 17 00:00:00 2001 From: Andre Weissflog Date: Mon, 10 Jul 2023 16:49:16 +0200 Subject: [PATCH] sokol_gl.h: update documentation --- util/sokol_gl.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/util/sokol_gl.h b/util/sokol_gl.h index c7693f781..f17da4788 100644 --- a/util/sokol_gl.h +++ b/util/sokol_gl.h @@ -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 @@ -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: