| /CTR-SDK-4.2.7-SampleDemos/gx/Demo/ScreenCapture/ |
| D | gx_CaptureUtil.cpp | 22 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 …]
|
| D | TriangleSimple.cpp | 47 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/ |
| D | gx.cpp | 140 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/ |
| D | ClipEquation.cpp | 129 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/ |
| D | LineSimple.cpp | 94 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/ |
| D | gx_AlphaTest.cpp | 164 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/ |
| D | Fog.cpp | 418 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/ |
| D | GasColorSimple.cpp | 280 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/ |
| D | GasColorOptimal.cpp | 264 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/ |
| D | PartsysGas.cpp | 412 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/ |
| D | main.cpp | 285 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/ |
| D | LightingDistanceAtte.cpp | 161 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/ |
| D | main.cpp | 366 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/ |
| D | GasCessna.cpp | 363 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/ |
| D | main.cpp | 420 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/ |
| D | LightingSpotAtte.cpp | 172 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/ |
| D | LightingVertex.cpp | 203 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/ |
| D | LightingToonApple.cpp | 244 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/ |
| D | LightingFresnel.cpp | 260 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/ |
| D | LightingAniso.cpp | 249 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/ |
| D | CommandBufferJump.cpp | 375 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/ |
| D | LightingMicrofacet.cpp | 358 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/ |
| D | gx_TextureCombiner.cpp | 199 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/ |
| D | LightingSss.cpp | 365 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/ |
| D | graphics.cpp | 275 const nn::math::Matrix44& proj, in DrawObjects() argument 287 …mMatrix4fv(glGetUniformLocation(s_PgID, "uProjection"), 1, GL_TRUE, static_cast<const f32*>(proj)); in DrawObjects()
|