Home
last modified time | relevance | path

Searched refs:width (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
54 s_pRenderSystem->DrawLine(x, y, x + width, y); in DrawBox()
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()
DUtil.cpp191 f32 width = pTextWriter->CalculateStringWidth(pMessage1); in DrawConfirmMessage() local
194 f32 x = ((f32)NN_GX_DISPLAY1_HEIGHT - width) / 2.0f; in DrawConfirmMessage()
202 f32 width = pTextWriter->CalculateStringWidth(pMessage2); in DrawConfirmMessage() local
204 f32 x = ((f32)NN_GX_DISPLAY1_HEIGHT - width) / 2.0f; in DrawConfirmMessage()
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.cpp121 u32 width = (*it)->GetWidth(); 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
44 m_width = width; in ControlBase()
/CTR-SDK-4.2.7-SampleDemos/gx/DMPGL/Common/
DTga.cpp47 unsigned short width, height; member
70 tga->width = data[13] * 256 + data[12]; in _setTGAHeader()
97 data[12] = tga->width & 0xff;
98 data[13] = (tga->width & 0xff00) >> 8;
115 for(x = 0; x < tga->width; x++) { in _LoadTGAScanline()
148 while(x < tga->width && !errFlag) { in _LoadTGAScanlineRLE()
156 if (x >= tga->width) { in _LoadTGAScanlineRLE()
182 if (x >= tga->width) { in _LoadTGAScanlineRLE()
217 unsigned int *width, in dmpLoadTGA() argument
236 if (width) { in dmpLoadTGA()
[all …]
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()
123 glTexImage1D(_target, _level, format, width, 0, format, type, pixels); in loadTexture()
129 (*_width) = width; in loadTexture()
DTga.h98 unsigned int *width,
107 unsigned int width,
/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
122 NN_ASSERT( 0 < width || width <= nn::gx::DISPLAY0_WIDTH ); in SaveDisplayBufferSD()
188 xpad = ( 4 - ((width * 3) & 3) ) & 3; in SaveDisplayBufferSD()
189 i = 54 + width * height * 3 + xpad * height; in SaveDisplayBufferSD()
198 bh[22] = static_cast<u8>(width); in SaveDisplayBufferSD()
199 bh[23] = static_cast<u8>(width >> 8); in SaveDisplayBufferSD()
217 for (x = 0; x < width; ++x) in SaveDisplayBufferSD()
226 i += 3 * width; in SaveDisplayBufferSD()
241 for (x = j = 0; x < width; ++x) in SaveDisplayBufferSD()
250 i += 3 * width; in SaveDisplayBufferSD()
[all …]
/CTR-SDK-4.2.7-SampleDemos/documents/css/
Dbutton.css20 border-width : 1pt;
23 width : 100%;
39 border-width : 1px;
53 border-width : 1px;
Dcontents.css27 border-width : 1px 0 0 0;
43 border-width : 1px;
58 border-width : 1px;
104 border-width : 1px;
126 width : 60px;
138 border-width : 1px 2px 2px 1px;
Dmain.css126 border-width : 3px;
140 border-width : 0px 0px 2px 8px;
151 border-width : 0pt;
205 border-width : 0px;
217 border-width : 1px;
Dmanpage.css40 border-width : 3px;
53 border-width : 0px 0px 2px 8px;
72 width : 95%;
95 width : 20%;
/CTR-SDK-4.2.7-SampleDemos/common/libraries/demo/Utility/
Ddemo_TextureConverter.cpp41 u32 width; member
83 bool ConvertGLTextureToNative(const GLenum format, const u32 width, const u32 height, in ConvertGLTextureToNative() argument
92 if (width & 0x00000003 || height & 0x00000003) in ConvertGLTextureToNative()
98 textureInformation.width = width; in ConvertGLTextureToNative()
100 textureInformation.blocksInRow = (textureInformation.width / TEXTURE_BLOCK_SIZE); in ConvertGLTextureToNative()
189 pSrc += pixelByte * textureInformation->width; in ReadBlock()
270 pDst + (pixelByte * textureInformation->width * blocksize), in DeBlock()
274 pDst + (pixelByte * (blocksize + (textureInformation->width * blocksize))), in DeBlock()
280 pDst + (pixelByte * textureInformation->width*blocksize), in DeBlock()
284 pDst + (pixelByte * (blocksize + (textureInformation->width * blocksize))), in DeBlock()
[all …]
/CTR-SDK-4.2.7-SampleDemos/font/ResFont/
Dmain.cpp103 int width, 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()
278 int width, in SetupTextCamera() argument
289 f32 b = static_cast<f32>(width); in SetupTextCamera()
318 int width, in DrawAscii() argument
356 SetupTextCamera(pDrawer, width, height); in DrawAscii()
376 int width, 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…
204 void SetWidth(u32 width) in SetWidth() argument
206 if (width > 0) in SetWidth()
208 m_width = width; in SetWidth()
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/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.cpp110 int width, 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()
413 int width, in SetupTextCamera() argument
426 f32 r = static_cast<f32>(width); in SetupTextCamera()
454 int width, in DrawAscii() argument
480 SetupTextCamera(pDrawer, width, height); in DrawAscii()
/CTR-SDK-4.2.7-SampleDemos/common/libraries/demo/Render/
Ddemo_RenderSystemDrawing.cpp139 …void RenderSystemDrawing::SetViewport(const GLint x, const GLint y, const GLsizei width, const GLs… 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/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.cpp350 int width, in SetupTextCamera() argument
356 const GLsizei lcdHeight = width; in SetupTextCamera()
358 const GLsizei lcdWidth = width; in SetupTextCamera()
372 f32 r = static_cast<f32>(width); in SetupTextCamera()

12