Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【igl nanovg part-1】shell | Android OpenGLES SampleView introduce new param : enableStencilBuffer #215

Conversation

vinsentli
Copy link
Contributor

This is a prerequisite pull request for igl nanovg(#213).

@vinsentli vinsentli changed the title shell | android | opengles add stencil buffer 【igl nanovg part-1】shell | android | opengles add stencil buffer Nov 26, 2024
@@ -162,13 +162,14 @@ public ConfigChooser(SampleLib.BackendVersion version) {
public EGLConfig chooseConfig(EGL10 egl, EGLDisplay display) {
final int EGL_OPENGL_ES2_BIT = 4;

// Set ourselves a strict configuration: RGBA8888, 16-bit depth buffer, no stencil.
// Set ourselves a strict configuration: RGBA8888, 16-bit depth buffer, 8-bit stencil buffer.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a parameter to control this. By default, the stencil buffer should be disabled.

Copy link
Contributor

@corporateshark corporateshark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stencil buffer should be disabled by default. Please introduce an optional parameter to enable the stencil buffer.

@vinsentli
Copy link
Contributor Author

Stencil buffer should be disabled by default. Please introduce an optional parameter to enable the stencil buffer.

done

@vinsentli vinsentli marked this pull request as draft November 28, 2024 04:59
@vinsentli vinsentli changed the title 【igl nanovg part-1】shell | android | opengles add stencil buffer 【WIP】【igl nanovg part-1】shell | android | opengles add stencil buffer Dec 10, 2024
@vinsentli vinsentli changed the title 【WIP】【igl nanovg part-1】shell | android | opengles add stencil buffer 【WIP】【igl nanovg part-4】shell | android | opengles add stencil buffer Dec 18, 2024
@vinsentli vinsentli changed the title 【WIP】【igl nanovg part-4】shell | android | opengles add stencil buffer 【WIP】【igl nanovg part-4】shell | android OpenGLES SampleView add new param: enableStencilBuffer Dec 22, 2024
@vinsentli vinsentli changed the title 【WIP】【igl nanovg part-4】shell | android OpenGLES SampleView add new param: enableStencilBuffer 【WIP】【igl nanovg part-4】shell | Android OpenGLES SampleView add new param: enableStencilBuffer Dec 22, 2024
@vinsentli vinsentli marked this pull request as ready for review December 22, 2024 11:48
@vinsentli vinsentli changed the title 【WIP】【igl nanovg part-4】shell | Android OpenGLES SampleView add new param: enableStencilBuffer 【igl nanovg part-1】shell | Android OpenGLES SampleView add new param: enableStencilBuffer Dec 22, 2024
@vinsentli vinsentli changed the title 【igl nanovg part-1】shell | Android OpenGLES SampleView add new param: enableStencilBuffer 【igl nanovg part-1】shell | Android OpenGLES SampleView introduce new param : enableStencilBuffer Dec 22, 2024
@facebook-github-bot
Copy link
Contributor

@corporateshark has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

@corporateshark merged this pull request in a458777.

@vinsentli vinsentli deleted the igl_nanovg_part1_android_add_stencil_buffer branch January 7, 2025 06:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants