コード例 #1
0
ファイル: renderer_nvpr_path.cpp プロジェクト: ghub/NVprSDK
void NVprPathRendererState::stencilModeFill(GLenum stencil_fill_rule, GLuint stencil_write_mask,
                                            GLenum stencil_func, GLint stencil_ref,
                                            GLuint stencil_read_mask)
{
    glPathStencilFuncNV(stencil_func, stencil_ref, stencil_read_mask);
    glStencilFillPathNV(path, stencil_fill_rule, stencil_write_mask);
}
コード例 #2
0
ファイル: renderer_nvpr_path.cpp プロジェクト: ghub/NVprSDK
void NVprPathRendererState::stencilStroke(GLint replace_value, GLuint stencil_write_mask,
                                          GLenum stencil_func,
                                          GLint stencil_ref,
                                          GLuint read_mask)
{
    glPathStencilFuncNV(stencil_func, stencil_ref, read_mask);
    glStencilStrokePathNV(path, replace_value, stencil_write_mask);
}
コード例 #3
0
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVPathRendering_nglPathStencilFuncNV(JNIEnv *env, jclass clazz, jint func, jint ref, jint mask, jlong function_pointer) {
	glPathStencilFuncNVPROC glPathStencilFuncNV = (glPathStencilFuncNVPROC)((intptr_t)function_pointer);
	glPathStencilFuncNV(func, ref, mask);
}