Bug 1162

Summary: Using TextRegionUtil (RegionRenderer and RenderState) with user GL code
Product: [JogAmp] Jogl Reporter: Lili <salzabg>
Component: graphAssignee: Sven Gothel <sgothel>
Status: RESOLVED INVALID    
Severity: normal CC: rami.santina, sgothel
Priority: ---    
Version: tbd   
Hardware: All   
OS: all   
Type: FEATURE SCM Refs:
Workaround: ---

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.