Bug 1162 - Using TextRegionUtil (RegionRenderer and RenderState) with user GL code
Summary: Using TextRegionUtil (RegionRenderer and RenderState) with user GL code
Status: RESOLVED INVALID
Alias: None
Product: Jogl
Classification: JogAmp
Component: graph (show other bugs)
Version: tbd
Hardware: All all
: --- normal
Assignee: Sven Gothel
URL:
Depends on:
Blocks:
 
Reported: 2015-06-11 17:36 CEST by Lili
Modified: 2024-02-14 00:58 CET (History)
2 users (show)

See Also:
Type: FEATURE
SCM Refs:
Workaround: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lili 2015-06-11 17:36:11 CEST
Unable to render both text and my own shapes (using my own shaders).
Previous solution of using
gl.glUseProgram(shaderState.shaderProgram().program())
  // text rendering
  .......
gl.glUseProgram(myOwnProgram)
  // my stuff
  ......

doesn't work any more.

Instead I needed to set 
 RenderState.setShaderProgram(final GL2ES2 gl, final ShaderProgram someShProg) {..}
Comment 1 Sven Gothel 2024-02-14 00:58:13 CET
to use your own shader, you would need to grab the Glyph's shape (OutlineShape) and perhaps render them with your own underlying technique - still benefiting from our typecast migration.