does GL_SCISSOR_TEST suuport at WP 8?

does GL_SCISSOR_TEST suuport at WP 8?
0.0 0


cause WP8 doesn’t support opengl…

is there anyway to use GL_SCISSOR_TEST?


DirectX supports the scissor test. Here’s an example for the windows 8 version of cocos2d.

CCEGLView::sharedOpenGLView().setScissorInPoints(viewLimit.origin.x, viewLimit.origin.y, viewLimit.size.width, viewLimit.size.height);

I haven’t tried this with WP8, but it does work with Windows 8 metro.

Hope this helps!


thx for the reply…

i already do that…
but nothing happen…

or did i miss something?


Also enable scissor in the raster state in DirectXRender.cpp like this:

bool DirectXRender::SetRasterState()
ID3D11RasterizerState* rasterState;
rasterDesc.FillMode = D3D11_FILL_SOLID;
rasterDesc.CullMode = D3D11_CULL_NONE;
rasterDesc.DepthBias = 0;
rasterDesc.DepthBiasClamp = 0.0f;
rasterDesc.SlopeScaledDepthBias = 0.0f;
rasterDesc.DepthClipEnable = TRUE;
rasterDesc.AntialiasedLineEnable = TRUE;
rasterDesc.FrontCounterClockwise = TRUE;
rasterDesc.MultisampleEnable = FALSE;
rasterDesc.ScissorEnable = TRUE; // ** set to TRUE for scissor function

// Create the rasterizer state from the description we just filled out.
if(FAILED (m_d3dDevice->CreateRasterizerState(&rasterDesc, &rasterState)))
return FALSE;
rasterState = 0;
return TRUE;