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 add stencil buffer #215

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

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
Copy link
Contributor Author

I will use 【 igl::TextureFormat depthTextureFormat】 to replace 【boolean enableStencilBuffer】

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