Home
last modified time | relevance | path

Searched refs:height (Results 1 – 25 of 33) sorted by relevance

12

/CTR-SDK-4.2.7-SampleDemos/common/libraries/scene/
DGuiUtil.cpp49 void util::DrawBox(f32 x, f32 y, f32 width, f32 height, f32 lineWidth) in DrawBox() argument
56 s_pRenderSystem->DrawLine(x + width, y, x + width, y + height); in DrawBox()
58 s_pRenderSystem->DrawLine(x + width, y + height, x, y + height); in DrawBox()
60 s_pRenderSystem->DrawLine(x, y + height, x, y); in DrawBox()
DGuiLabel.cpp22 Label::Label(u32 id, s32 x, s32 y, u32 width, u32 height, const wchar_t* pText, void* pExtraData, f… in Label() argument
23 : ControlBase(CONTROL_TYPE_LABEL, id, x, y, width, height, pText, pExtraData, fontScale) in Label()
DGuiButton.cpp22 Button::Button(u32 id, s32 x, s32 y, u32 width, u32 height, const wchar_t* pText, void* pExtraData,… in Button() argument
23 : ControlBase(CONTROL_TYPE_BUTTON, id, x, y, width, height, pText, pExtraData, fontScale) in Button()
DGuiControlManager.cpp122 u32 height = (*it)->GetHeight(); in Update() local
134 if (nowX >= x && nowX <= x + width && nowY >= y && nowY <= y + height) in Update()
169 bool isIn = (prevX >= x && prevX <= x + width && prevY >= y && prevY <= y + height); in Update()
DGuiControlBase.cpp38 ControlBase::ControlBase(ControlType type, u32 id, s32 x, s32 y, u32 width, u32 height, const wchar… in ControlBase() argument
45 m_height = height; in ControlBase()
DUtil.cpp192 f32 height = pTextWriter->CalculateStringHeight(pMessage1); in DrawConfirmMessage() local
195 f32 y = ((f32)NN_GX_DISPLAY1_WIDTH - 45.0f) / 2.0f - (height + 1.0f); in DrawConfirmMessage()
/CTR-SDK-4.2.7-SampleDemos/gx/Demo/ScreenCapture/
Dgx_CaptureUtil.cpp104 GLuint addr, const u32 width, const u32 height, u8 *work = NULL) in SaveDisplayBufferSD() argument
123 NN_ASSERT( 0 < height || height <= nn::gx::DISPLAY0_HEIGHT); in SaveDisplayBufferSD()
189 i = 54 + width * height * 3 + xpad * height; in SaveDisplayBufferSD()
196 bh[18] = static_cast<u8>(height); in SaveDisplayBufferSD()
197 bh[19] = static_cast<u8>(height >> 8); in SaveDisplayBufferSD()
220 for (y = j = 0; y < height; ++y) in SaveDisplayBufferSD()
228 result = fos.TryWrite(&size, linebuf, height * 3, true); in SaveDisplayBufferSD()
244 for (y = 0; y < height; ++y) in SaveDisplayBufferSD()
253 result = fos.TryWrite(&size, work, width * height * 3 + 54, true); in SaveDisplayBufferSD()
/CTR-SDK-4.2.7-SampleDemos/gx/DMPGL/Common/
DUtil.cpp37 unsigned width, height, format, type, orientation; in loadTexture() local
40 pixels = (unsigned char*)dmpLoadTGA(_name, &width, &height, &format, &type, &orientation); in loadTexture()
66 newpixels = (unsigned char*)malloc(width * height * 4); in loadTexture()
72 for (i = 0; i < width * height; i++) in loadTexture()
86 newpixels = (unsigned char*)malloc(width * height * 3); in loadTexture()
92 for (i = 0; i < width * height; i++) in loadTexture()
121 glTexImage2D(_target, _level, format, width, height, 0, format, type, pixels); in loadTexture()
DTga.cpp47 unsigned short width, height; member
71 tga->height = data[15] * 256 + data[14]; in _setTGAHeader()
99 data[14] = tga->height & 0xff;
100 data[15] = (tga->height & 0xff00) >> 8;
218 unsigned int *height, in dmpLoadTGA() argument
239 if (height) { in dmpLoadTGA()
240 *height = 0; /* unknown */ in dmpLoadTGA()
299 if ((pixels = static_cast<unsigned char*>(malloc(tga.width * tga.height * tga.bpp))) == NULL) { in dmpLoadTGA()
313 for(y = 0; y < tga.height; y++) { in dmpLoadTGA()
317 (_upper ? tga.height - y - 1 : y); in dmpLoadTGA()
[all …]
DTga.h99 unsigned int *height,
108 unsigned int height,
/CTR-SDK-4.2.7-SampleDemos/font/ResFont/
Dmain.cpp104 int height in InitDraw() argument
109 const nn::font::ColorBufferInfo colBufInfo = { width, height, PICA_DATA_DEPTH24_STENCIL8_EXT }; in InitDraw()
115 NN_FONT_CMD_SET_VIEWPORT( 0, 0, colBufInfo.width, colBufInfo.height ), in InitDraw()
279 int height in SetupTextCamera() argument
291 f32 r = static_cast<f32>(height); in SetupTextCamera()
319 int height in DrawAscii() argument
356 SetupTextCamera(pDrawer, width, height); in DrawAscii()
377 int height in DrawCounter() argument
390 SetupTextCamera(pDrawer, width, height); in DrawCounter()
/CTR-SDK-4.2.7-SampleDemos/common/include/scene/
DGuiControlBase.h48 …ControlBase(ControlType type, u32 id, s32 x, s32 y, u32 width, u32 height, const wchar_t* pText, v…
215 void SetHeight(u32 height) in SetHeight() argument
217 if (height > 0) in SetHeight()
219 m_height = height; in SetHeight()
DGuiUtil.h59 void DrawBox(f32 x, f32 y, f32 width, f32 height, f32 lineWidth = 1.0f);
DGuiLabel.h40 …Label(u32 id, s32 x, s32 y, u32 width, u32 height, const wchar_t* pText = NULL, void* pExtraData =…
DGuiButton.h40 …Button(u32 id, s32 x, s32 y, u32 width, u32 height, const wchar_t* pText = NULL, void* pExtraData …
/CTR-SDK-4.2.7-SampleDemos/common/libraries/demo/Utility/
Ddemo_TextureConverter.cpp42 u32 height; member
83 bool ConvertGLTextureToNative(const GLenum format, const u32 width, const u32 height, in ConvertGLTextureToNative() argument
92 if (width & 0x00000003 || height & 0x00000003) in ConvertGLTextureToNative()
99 textureInformation.height = height; in ConvertGLTextureToNative()
101 textureInformation.blocksInCol = (textureInformation.height / TEXTURE_BLOCK_SIZE); in ConvertGLTextureToNative()
381 … s32 total = static_cast<s32>(textureInformation->width * textureInformation->height * pixelByte); in ConvertFormat8888Function()
396 … s32 total = static_cast<s32>(textureInformation->width * textureInformation->height * pixelByte); in ConvertFormat888Function()
410 … s32 total = static_cast<s32>(textureInformation->width * textureInformation->height * pixelByte); in ConvertFormat88Function()
/CTR-SDK-4.2.7-SampleDemos/common/include/demo/Utility/
Ddemo_TextureConverter.h35 bool ConvertGLTextureToNative(const GLenum format, const u32 width, const u32 height,
/CTR-SDK-4.2.7-SampleDemos/font/ArchiveFont/
Dmain.cpp111 int height in InitDraw() argument
116 const nn::font::ColorBufferInfo colBufInfo = { height, width, PICA_DATA_DEPTH24_STENCIL8_EXT }; in InitDraw()
121 NN_FONT_CMD_SET_VIEWPORT( 0, 0, colBufInfo.width, colBufInfo.height ), in InitDraw()
414 int height in SetupTextCamera() argument
424 f32 b = static_cast<f32>(height); in SetupTextCamera()
455 int height, in DrawAscii() argument
480 SetupTextCamera(pDrawer, width, height); in DrawAscii()
/CTR-SDK-4.2.7-SampleDemos/common/libraries/demo/Render/
Ddemo_RenderSystemDrawing.cpp139 …SystemDrawing::SetViewport(const GLint x, const GLint y, const GLsizei width, const GLsizei height) in SetViewport() argument
144 m_GraphicsDrawing.SetWindowSize(width, height); in SetViewport()
148 m_TexturedTrianglesRenderDataArray[textureArrayIndex].SetWindowSize(width, height); in SetViewport()
151 RenderSystem::SetViewport(x, y, width, height); in SetViewport()
247 const f32 windowCoordinateY, const f32 width, const f32 height) in FillRectangle() argument
251 width, height); in FillRectangle()
302 const GLsizei width, const GLsizei height, in GenerateTexture() argument
332 width, height, 0, in GenerateTexture()
/CTR-SDK-4.2.7-SampleDemos/common/include/demo/Body/
Ddemo_Cylinder.h45 const f32 radius, const f32 height, const u32 division);
/CTR-SDK-4.2.7-SampleDemos/common/include/demo/Render/
Ddemo_RenderSystemDrawing.h113 … virtual void SetViewport(const GLint x, const GLint y, const GLsizei width, const GLsizei height);
220 const f32 width, const f32 height);
289 const GLsizei width, const GLsizei height,
/CTR-SDK-4.2.7-SampleDemos/font/PackedFont/
Dmain.cpp351 int height in SetupTextCamera() argument
355 const GLsizei lcdWidth = height; in SetupTextCamera()
359 const GLsizei lcdHeight = height; in SetupTextCamera()
370 f32 b = static_cast<f32>(height); in SetupTextCamera()
/CTR-SDK-4.2.7-SampleDemos/documents/css/
Dbutton.css24 height : 100%;
Dmain.css107 height : 4pt;
226 line-height : 18px;
/CTR-SDK-4.2.7-SampleDemos/common/libraries/demo/Body/
Ddemo_Cylinder.cpp43 const f32 radius, const f32 height, const u32 division) in InitializeCylinder() argument
49 m_Height = height; in InitializeCylinder()

12