Home
last modified time | relevance | path

Searched refs:proj (Results 1 – 25 of 26) sorted by relevance

12

/CTR-SDK-4.2.7-SampleDemos/gx/Demo/ScreenCapture/
Dgx_CaptureUtil.cpp22 void GetProjectionParameters( nn::math::Matrix44* proj, f32* left, f32* right, in GetProjectionParameters() argument
26 *near = proj->m[2][3] / proj->m[2][2]; in GetProjectionParameters()
27 *far = proj->m[2][3] / (proj->m[2][2] - 1.0f); in GetProjectionParameters()
29 f32 tmp = proj->m[2][3] / (proj->m[0][0] * proj->m[2][2]); in GetProjectionParameters()
30 *left = tmp * (proj->m[0][2] - 1.0f); in GetProjectionParameters()
31 *right = tmp * (proj->m[0][2] + 1.0f); in GetProjectionParameters()
33 tmp = proj->m[2][3] / (proj->m[1][1] * proj->m[2][2]); in GetProjectionParameters()
34 *top = tmp * (proj->m[1][2] + 1.0f); in GetProjectionParameters()
35 *bottom = tmp * (proj->m[1][2] - 1.0f); in GetProjectionParameters()
44 void GetProjectionForPartialCapture(nn::math::Matrix44* pOut, nn::math::Matrix44* proj, in GetProjectionForPartialCapture() argument
[all …]
DTriangleSimple.cpp47 extern void GetProjectionForPartialCapture(nn::math::Matrix44* pOut, nn::math::Matrix44* proj,
88 nn::math::Matrix44 proj; in DrawDisplay0() local
89 …nn::math::MTX44Frustum(&proj, -0.02f, 0.02f, -0.02f*nn::gx::DISPLAY0_HEIGHT/nn::gx::DISPLAY0_WIDTH, in DrawDisplay0()
91 …UniformMatrix4fv(glGetUniformLocation(s_PgID, "uProjection"), 1, GL_TRUE, static_cast<f32*>(proj)); in DrawDisplay0()
117 nn::math::Matrix44 proj, tmp; in DrawDisplay0AndSave() local
169 GetProjectionForPartialCapture(&proj, &tmp, 2, i, j, 0.0f, nn::math::PIVOT_NONE); in DrawDisplay0AndSave()
171 …UniformMatrix4fv(glGetUniformLocation(s_PgID, "uProjection"), 1, GL_TRUE, static_cast<f32*>(proj)); in DrawDisplay0AndSave()
/CTR-SDK-4.2.7-SampleDemos/demo1/
Dgx.cpp140 nn::math::Matrix44 proj; in DrawFrame() local
141 …nn::math::MTX44Frustum(&proj, -0.02f, 0.02f, -0.02f*nn::gx::DISPLAY0_HEIGHT/nn::gx::DISPLAY0_WIDTH, in DrawFrame()
143 …UniformMatrix4fv(glGetUniformLocation(s_PgID, "uProjection"), 1, GL_TRUE, static_cast<f32*>(proj)); in DrawFrame()
/CTR-SDK-4.2.7-SampleDemos/gx/DMPGL/ClipEquation/
DClipEquation.cpp129 nn::math::Matrix44 proj; in DrawFrame() local
130 …nn::math::MTX44Perspective(&proj, 50.0f, static_cast<f32>(nn::gx::DISPLAY0_WIDTH) / static_cast<f3… in DrawFrame()
131 …UniformMatrix4fv(glGetUniformLocation(s_PgID, "uProjection"), 1, GL_TRUE, static_cast<f32*>(proj)); in DrawFrame()
149 nn::math::Matrix44 mmp(proj); in DrawFrame()
/CTR-SDK-4.2.7-SampleDemos/gx/DMPGL/LineSimple/
DLineSimple.cpp94 nn::math::Matrix44 proj; in DrawFrame() local
95 …nn::math::MTX44Frustum(&proj, -0.02f, 0.02f, -0.02f * nn::gx::DISPLAY0_HEIGHT / nn::gx::DISPLAY0_W… in DrawFrame()
97 …UniformMatrix4fv(glGetUniformLocation(s_PgID, "uProjection"), 1, GL_TRUE, static_cast<f32*>(proj)); in DrawFrame()
/CTR-SDK-4.2.7-SampleDemos/gx/Api/AlphaTest/
Dgx_AlphaTest.cpp164 nn::math::Matrix44 proj; in DrawFrame() local
165 …nn::math::MTX44Perspective(&proj, 45.0f, static_cast<f32>(nn::gx::DISPLAY0_WIDTH)/static_cast<f32>… in DrawFrame()
193 …rmMatrix4fv(glGetUniformLocation(s_ProgramId, "uProjection"), 1, GL_TRUE, static_cast<f32*>(proj)); in DrawFrame()
/CTR-SDK-4.2.7-SampleDemos/gx/DMPGL/Fog/
DFog.cpp418 nn::math::Matrix44 proj; in Initialize() local
419 …nn::math::MTX44Perspective(&proj, 65.0f, static_cast<f32>(nn::gx::DISPLAY0_WIDTH) / static_cast<f3… in Initialize()
420 …UniformMatrix4fv(glGetUniformLocation(s_PgID, "uProjection"), 1, GL_TRUE, static_cast<f32*>(proj)); in Initialize()
435 InitializeFogTable(&proj); in Initialize()
/CTR-SDK-4.2.7-SampleDemos/gx/DMPGL/GasColorSimple/
DGasColorSimple.cpp280 nn::math::Matrix44 proj, m; in DrawFrame() local
281 …nn::math::MTX44Perspective(&proj, 45.0f, static_cast<f32>(DISPLAY_WIDTH) / static_cast<f32>(DISPLA… in DrawFrame()
282 …UniformMatrix4fv(glGetUniformLocation(pAccId, "uProjection"), 1, GL_TRUE, static_cast<f32*>(proj)); in DrawFrame()
/CTR-SDK-4.2.7-SampleDemos/gx/DMPGL/GasColorOptimal/
DGasColorOptimal.cpp264 nn::math::Matrix44 proj, m; in DrawFrame() local
265 …nn::math::MTX44Perspective(&proj, 45.0f, static_cast<f32>(DISPLAY_WIDTH) / static_cast<f32>(DISPLA… in DrawFrame()
266 …UniformMatrix4fv(glGetUniformLocation(pAccId, "uProjection"), 1, GL_TRUE, static_cast<f32*>(proj)); in DrawFrame()
/CTR-SDK-4.2.7-SampleDemos/gx/DMPGL/PartsysGas/
DPartsysGas.cpp412 nn::math::Matrix44 proj, m; in DrawFrame() local
413 …nn::math::MTX44Perspective(&proj, 35.0f, static_cast<f32>(nn::gx::DISPLAY0_WIDTH) / static_cast<f3… in DrawFrame()
439 …UniformMatrix4fv(glGetUniformLocation(pGeoId, "uProjection"), 1, GL_TRUE, static_cast<f32*>(proj)); in DrawFrame()
460 …UniformMatrix4fv(glGetUniformLocation(pAccId, "uProjection"), 1, GL_TRUE, static_cast<f32*>(proj)); in DrawFrame()
/CTR-SDK-4.2.7-SampleDemos/font/ResFont/
Dmain.cpp285 nn::math::MTX44 proj; in SetupTextCamera() local
292 nn::math::MTX44OrthoPivot(&proj, l, r, b, t, znear, zfar, nn::math::PIVOT_UPSIDE_TO_TOP); in SetupTextCamera()
293 pDrawer->SetProjectionMtx(proj); in SetupTextCamera()
/CTR-SDK-4.2.7-SampleDemos/gx/DMPGL/LightingDistanceAtte/
DLightingDistanceAtte.cpp161 nn::math::Matrix44 proj; in DrawFrame() local
162 …nn::math::MTX44Frustum(&proj, -0.06f, 0.06f, -0.06f*nn::gx::DISPLAY0_HEIGHT/nn::gx::DISPLAY0_WIDTH, in DrawFrame()
164 …rmMatrix4fv(glGetUniformLocation(s_ProgramID, "uProjection"), 1, GL_TRUE, static_cast<f32*>(proj)); in DrawFrame()
/CTR-SDK-4.2.7-SampleDemos/font/PackedFont/
Dmain.cpp366 nn::math::MTX44 proj; in SetupTextCamera() local
373 nn::math::MTX44OrthoPivot(&proj, l, r, b, t, znear, zfar, nn::math::PIVOT_UPSIDE_TO_TOP); in SetupTextCamera()
374 textWriterResource.SetProjectionMtx(proj); in SetupTextCamera()
/CTR-SDK-4.2.7-SampleDemos/gx/DMPGL/GasCessna/
DGasCessna.cpp363 nn::math::Matrix44 proj; in DrawFrame() local
364 …nn::math::MTX44Perspective(&proj, 65.0f, static_cast<f32>(nn::gx::DISPLAY0_WIDTH) / static_cast<f3… in DrawFrame()
378 …UniformMatrix4fv(glGetUniformLocation(pGeoId, "uProjection"), 1, GL_TRUE, static_cast<f32*>(proj)); in DrawFrame()
406 …UniformMatrix4fv(glGetUniformLocation(pAccId, "uProjection"), 1, GL_TRUE, static_cast<f32*>(proj)); in DrawFrame()
/CTR-SDK-4.2.7-SampleDemos/font/ArchiveFont/
Dmain.cpp420 nn::math::MTX44 proj; in SetupTextCamera() local
427 nn::math::MTX44OrthoPivot(&proj, l, r, b, t, znear, zfar, nn::math::PIVOT_UPSIDE_TO_TOP); in SetupTextCamera()
428 pDrawer->SetProjectionMtx(proj); in SetupTextCamera()
/CTR-SDK-4.2.7-SampleDemos/gx/DMPGL/LightingSpotAtte/
DLightingSpotAtte.cpp172 nn::math::Matrix44 proj; in DrawFrame() local
173 …nn::math::MTX44Frustum(&proj, -0.06f, 0.06f, -0.06f*nn::gx::DISPLAY0_HEIGHT/nn::gx::DISPLAY0_WIDTH, in DrawFrame()
175 …rmMatrix4fv(glGetUniformLocation(s_ProgramID, "uProjection"), 1, GL_TRUE, static_cast<f32*>(proj)); in DrawFrame()
/CTR-SDK-4.2.7-SampleDemos/gx/DMPGL/LightingVertex/
DLightingVertex.cpp203 nn::math::Matrix44 proj; in DrawFrame() local
214 …nn::math::MTX44Frustum(&proj, -0.07f, 0.07f, -0.07f * nn::gx::DISPLAY0_HEIGHT / nn::gx::DISPLAY0_W… in DrawFrame()
216 …UniformMatrix4fv(glGetUniformLocation(s_PgID, "uProjection"), 1, GL_TRUE, static_cast<f32*>(proj)); in DrawFrame()
/CTR-SDK-4.2.7-SampleDemos/gx/DMPGL/LightingToonApple/
DLightingToonApple.cpp244 nn::math::Matrix44 proj; in SetRenderState() local
246 …nn::math::MTX44Frustum(&proj, -0.015f, 0.015f, -0.015f * nn::gx::DISPLAY0_HEIGHT / nn::gx::DISPLAY… in SetRenderState()
248 …rmMatrix4fv(glGetUniformLocation(s_ProgramID, "uProjection"), 1, GL_TRUE, static_cast<f32*>(proj)); in SetRenderState()
/CTR-SDK-4.2.7-SampleDemos/gx/DMPGL/LightingFresnel/
DLightingFresnel.cpp260 nn::math::Matrix44 proj; in DrawFrame() local
261 …nn::math::MTX44Frustum(&proj, -0.025f, 0.025f, -0.025f * nn::gx::DISPLAY0_HEIGHT / nn::gx::DISPLAY… in DrawFrame()
263 …rmMatrix4fv(glGetUniformLocation(s_ProgramID, "uProjection"), 1, GL_TRUE, static_cast<f32*>(proj)); in DrawFrame()
/CTR-SDK-4.2.7-SampleDemos/gx/DMPGL/LightingAniso/
DLightingAniso.cpp249 nn::math::Matrix44 proj; in SetRenderState() local
250 …nn::math::MTX44Frustum(&proj, -0.01f, 0.01f, -0.01f * nn::gx::DISPLAY0_HEIGHT / nn::gx::DISPLAY0_W… in SetRenderState()
252 …rmMatrix4fv(glGetUniformLocation(s_ProgramID, "uProjection"), 1, GL_TRUE, static_cast<f32*>(proj)); in SetRenderState()
/CTR-SDK-4.2.7-SampleDemos/gx/Api/CommandBufferJump/
DCommandBufferJump.cpp375 nn::math::Matrix44 proj; in CreateCommand() local
397 …nn::math::MTX44Frustum(&proj, -0.06f, 0.06f, -0.06f * nn::gx::DISPLAY0_HEIGHT / nn::gx::DISPLAY0_W… in CreateCommand()
399 …rmMatrix4fv(glGetUniformLocation(s_ProgramID, "uProjection"), 1, GL_TRUE, static_cast<f32*>(proj)); in CreateCommand()
481 nn::math::Matrix44 proj; in DrawFrame() local
/CTR-SDK-4.2.7-SampleDemos/gx/DMPGL/LightingMicrofacet/
DLightingMicrofacet.cpp358 nn::math::Matrix44 proj; in DrawFrame() local
365 …nn::math::MTX44Frustum(&proj, -0.06f, 0.06f, -0.06f * nn::gx::DISPLAY0_HEIGHT / nn::gx::DISPLAY0_W… in DrawFrame()
367 …rmMatrix4fv(glGetUniformLocation(s_ProgramID, "uProjection"), 1, GL_TRUE, static_cast<f32*>(proj)); in DrawFrame()
/CTR-SDK-4.2.7-SampleDemos/gx/Api/TextureCombiner/
Dgx_TextureCombiner.cpp199 nn::math::Matrix44 proj; in DrawDisplay0() local
201 …nn::math::MTX44Frustum(&proj, -0.02f, 0.02f, -0.02f* static_cast<f32>(nn::gx::DISPLAY0_HEIGHT) / s… in DrawDisplay0()
203 …rmMatrix4fv(glGetUniformLocation(s_ProgramID, "uProjection"), 1, GL_TRUE, static_cast<f32*>(proj)); in DrawDisplay0()
/CTR-SDK-4.2.7-SampleDemos/gx/DMPGL/LightingSss/
DLightingSss.cpp365 nn::math::Matrix44 proj, world; in DrawFrame() local
372 …nn::math::MTX44Frustum(&proj, -0.06f, 0.06f, -0.06f * nn::gx::DISPLAY0_HEIGHT / nn::gx::DISPLAY0_W… in DrawFrame()
374 …rmMatrix4fv(glGetUniformLocation(s_ProgramID, "uProjection"), 1, GL_TRUE, static_cast<f32*>(proj)); in DrawFrame()
/CTR-SDK-4.2.7-SampleDemos/demo2/
Dgraphics.cpp275 const nn::math::Matrix44& proj, in DrawObjects() argument
287 …mMatrix4fv(glGetUniformLocation(s_PgID, "uProjection"), 1, GL_TRUE, static_cast<const f32*>(proj)); in DrawObjects()

12