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