Home
last modified time | relevance | path

Searched refs:width (Results 1 – 25 of 55) sorted by relevance

123

/CafeSDK-2.12.13/system/src/lib/demo/demowin/
Ddemowin_double_combo_box.cpp32 if (CursorColliding(this->x, this->y, this->width, this->height)) in CursorOver()
50 …y - (this->height / 2 + this->height * visibleCount / 2) * flipMul, this->width / 2, this->height … in CursorOver()
66 …sorColliding(this->x + this->width / 2, this->y + this->height / 2 - this->height * visibleCount /… in CursorOver()
146 widthOffset = this->bar2.width / 2; in Update()
198 CursorX() = window->GetX() + this->x + this->width / 2 - widthOffset; in Update()
202 …iding(this->x + this->width / 2 - widthOffset, this->y + this->height / 2 - this->height * visible… in Update()
231 …sorColliding(this->x + this->width / 2, this->y + this->height / 2 - this->height * visibleCount /… in Update()
252 widthOffset = this->bar1.width / 2; in Update()
317 …y - (this->height / 2 + this->height * visibleCount / 2) * flipMul, this->width / 2 - widthOffset … in Update()
358 …this->width / 2 - widthOffset, this->y - (this->height / 2 + this->height * COMBOBOX_COUNT / 2 + t… in Update()
[all …]
Ddemowin_combo_box.cpp40 if (CursorColliding(this->x, this->y, this->width, this->height)) in CursorOver()
56 …s->x, this->y + this->height / 2 + this->height * visibleCount / 2, this->width, this->height * vi… in CursorOver()
61 …s->x, this->y - this->height / 2 - this->height * visibleCount / 2, this->width, this->height * vi… in CursorOver()
99 widthOffset = this->bar.width / 2; in Update()
175 …y - (this->height / 2 + this->height * visibleCount / 2) * flipMul, this->width - widthOffset * 2,… in Update()
204 …y - (this->height / 2 + this->height * visibleCount / 2) * flipMul, this->width, this->height * vi… in Update()
230 if (CursorColliding(this->x, this->y, this->width, this->height)) in Update()
247 …DrawBox(CVec3(this->x + this->width / 2 - arrowWidth / 2, this->y, this->z + 0.0035), CVec2(arrowW… in Draw()
252 …DrawBox(CVec3(this->x + this->width / 2 - arrowWidth / 2, this->y, this->z + 0.0035), CVec2(arrowW… in Draw()
256 …, CVec3(this->x - arrowWidth / 2, this->y, this->z + 0.0032), CVec2(this->width - arrowWidth, this… in Draw()
[all …]
Ddemowin_scroll_bar.cpp72 if (CursorColliding(this->x, this->y + offY, this->width, this->subHeight)) in Update()
113 if (subHeight < width) in Draw()
114 subHeight = width; in Draw()
121 DrawQuad(CVec3(x, y + offY, z + 0.0001), CVec2(width, subHeight), color); in Draw()
123 DrawLine(CVec3(x - width / 2, y - height / 2, z + 0.0002), CVec2(0, height), CVec4(0, 0, 0)); in Draw()
Ddemowin_slider_bar.cpp23 …pItem->minus = HeldButton::Add(HeldButton(item.window, CVec3(item.x - (item.width - item.height) /… in Add()
24 …pItem->plus = HeldButton::Add(HeldButton(item.window, CVec3(item.x + (item.width - item.height) /… in Add()
77 float t = x / (this->width - this->height * 3); in Update()
106 float x = t * (this->width - this->height * 3); in Update()
124 DrawQuad(position, CVec2(this->width - this->height / 3, this->height / 4), CVec4(0, 0, 0)); in Draw()
144 this->minus->x = this->x - (this->width - this->height) / 2; in Draw()
147 this->plus->x = this->x + (this->width - this->height) / 2; in Draw()
156 float x = t * (this->width - this->height * 3); in Draw()
Ddemowin_slider_bar_float.cpp23 …pItem->minus = HeldButton::Add(HeldButton(item.window, CVec3(item.x - (item.width - item.height) /… in Add()
24 …pItem->plus = HeldButton::Add(HeldButton(item.window, CVec3(item.x + (item.width - item.height) /… in Add()
77 float t = x / (this->width - this->height * 3); in Update()
106 float x = t * (this->width - this->height * 3); in Update()
124 DrawQuad(position, CVec2(this->width - this->height / 3, this->height / 4), CVec4(0, 0, 0)); in Draw()
144 this->minus->x = this->x - (this->width - this->height) / 2; in Draw()
147 this->plus->x = this->x + (this->width - this->height) / 2; in Draw()
156 float x = t * (this->width - this->height * 3); in Draw()
Ddemowin_button.cpp39 if (CursorColliding(this->x, this->y, this->width, this->height)) in Update()
61 …DrawTextCenter(text.text, CVec3(x, y, z + 0.0001), CVec2(width, height * 0.8), CVec4(1.0 - color.r… in Draw()
Ddemowin_held_button.cpp42 if (CursorColliding(this->x, this->y, this->width, this->height)) in Update()
68 …DrawTextCenter(text.text, CVec3(x, y, z + 0.0001), CVec2(width, height * 0.8), CVec4(1.0 - color.r… in Draw()
/CafeSDK-2.12.13/system/src/tool/gfx/projects/TexConv2/ddsReader/
DDDS.h24 #define PAD_BYTE(width, bpp) (((bpp) * (width) + 7) / 8) argument
25 #define PAD_WORD(width, bpp) ((((bpp) * (width) + 15) / 16) * 2) argument
27 #define PAD_DWORD(width, bpp) ((((bpp) * (width) + 31) / 32) * 4) argument
/CafeSDK-2.12.13/system/src/lib/demo/headers/cafe/demo/
DdemoFont.h95 inline void DEMOFontSetViewport(f32 xOrig, f32 yOrig, f32 width, f32 height) in DEMOFontSetViewport() argument
97 GX2SetViewport(xOrig, yOrig, width, height, 0.0f, 1.0f); in DEMOFontSetViewport()
98 GX2SetScissor(xOrig, yOrig, width, height); in DEMOFontSetViewport()
111 colorBuffer->surface.width, in DEMOFontSetTarget()
DdemoGfx.h189 u32 width, u32 height, u32 depth, in DEMOGfxInitColorBufferEx() argument
198 colorBuffer->surface.width = width; in DEMOGfxInitColorBufferEx()
227 u32 width, u32 height, u32 depth, in DEMOGfxInitDepthBufferEx() argument
236 depthBuffer->surface.width = width; in DEMOGfxInitDepthBufferEx()
/CafeSDK-2.12.13/system/include/cafe/demo/
DdemoFont.h95 inline void DEMOFontSetViewport(f32 xOrig, f32 yOrig, f32 width, f32 height) in DEMOFontSetViewport() argument
97 GX2SetViewport(xOrig, yOrig, width, height, 0.0f, 1.0f); in DEMOFontSetViewport()
98 GX2SetScissor(xOrig, yOrig, width, height); in DEMOFontSetViewport()
111 colorBuffer->surface.width, in DEMOFontSetTarget()
DdemoGfx.h189 u32 width, u32 height, u32 depth, in DEMOGfxInitColorBufferEx() argument
198 colorBuffer->surface.width = width; in DEMOGfxInitColorBufferEx()
227 u32 width, u32 height, u32 depth, in DEMOGfxInitDepthBufferEx() argument
236 depthBuffer->surface.width = width; in DEMOGfxInitDepthBufferEx()
/CafeSDK-2.12.13/system/include/cafe/demo/demowin/
Ddemowin_peripheral.h62 …bool CursorColliding(Window* window, float x, float y, float width, float height, bool ignoreBound…
74 …return (CursorX() >= x - width / 2 && CursorX() <= x + width / 2 && CursorY() >= y - height / 2 &&…
78 bool CursorColliding(float x, float y, float width, float height) in CursorColliding()
80 …return (CursorX() >= x - width / 2 && CursorX() <= x + width / 2 && CursorY() >= y - height / 2 &&… in CursorColliding()
Ddemowin_tab_window.h18 …TabWindow(WindowManager* manager, const char* name, CVec2 position, float width, bool canKill = tr…
/CafeSDK-2.12.13/system/src/lib/demo/headers/cafe/demo/demowin/
Ddemowin_peripheral.h62 …bool CursorColliding(Window* window, float x, float y, float width, float height, bool ignoreBound…
74 …return (CursorX() >= x - width / 2 && CursorX() <= x + width / 2 && CursorY() >= y - height / 2 &&…
78 bool CursorColliding(float x, float y, float width, float height) in CursorColliding()
80 …return (CursorX() >= x - width / 2 && CursorX() <= x + width / 2 && CursorY() >= y - height / 2 &&… in CursorColliding()
Ddemowin_tab_window.h18 …TabWindow(WindowManager* manager, const char* name, CVec2 position, float width, bool canKill = tr…
/CafeSDK-2.12.13/system/src/tool/gfx/projects/TexConv2/tgaReader/
DtgaReader.cpp57 TU_Error SwapFromBottomToTop(u8* pImg, u32 width, u32 height);
58 TU_Error SwapFromRightToLeft(u8* pImg, u32 width, u32 height);
59 TU_Error DecodeRLEImage(FILE*& pFile, TGA_INFO* pTGAD, u8* pImg, u32 width, u32 height, u32 bbp);
60 TU_Error ReadRawImage(FILE*& pFile, TGA_INFO* pTGAD, u8* pImg, u32 width, u32 height, u32 bbp);
66 TU_Error SwapFromBottomToTop(u8* pImg, u32 width, u32 height) in SwapFromBottomToTop() argument
73 for(x = 0; x < width; x++) in SwapFromBottomToTop()
75 u32 id0 = (width * y + x); in SwapFromBottomToTop()
76 u32 id1 = (width * (height-1 - y) + x); in SwapFromBottomToTop()
85 TU_Error SwapFromRightToLeft(u8* pImg, u32 width, u32 height) in SwapFromRightToLeft() argument
94 for(x = 0; x < width/2; x++) in SwapFromRightToLeft()
[all …]
/CafeSDK-2.12.13/system/src/tool/gfx/projects/SLConverter/deferredTestDX9/
DdeferredTest.cpp29 unsigned width = 1280; variable
60 …{ 0.0f, 0.0f, 0.5f, 1.0f, 0.0f + 0.5f / float(width), 0.0f + 0.5f / float(height)…
61 …{ float(width), 0.0f, 0.5f, 1.0f, 1.0f + 0.5f / float(width), 0.0f + 0.5f / float(height)…
62 …{ 0.0f, float(height), 0.5f, 1.0f, 0.0f + 0.5f / float(width), 1.0f + 0.5f / float(height)…
63 …{ float(width), float(height), 0.5f, 1.0f, 1.0f + 0.5f / float(width), 1.0f + 0.5f / float(height)…
168 …pDevice->CreateTexture(width, height, 1, D3DUSAGE_RENDERTARGET, D3DFMT_A8R8G8B8, D3DPOOL_DEFAULT, … in InitGlobals()
171 …pDevice->CreateTexture(width, height, 1, D3DUSAGE_RENDERTARGET, D3DFMT_A16B16G16R16F, D3DPOOL_DEFA… in InitGlobals()
174 …pDevice->CreateTexture(width, height, 1, D3DUSAGE_RENDERTARGET, D3DFMT_A16B16G16R16F, D3DPOOL_DEFA… in InitGlobals()
180 (float)width / (float)height, in InitGlobals()
314 WindowRect.left = GetSystemMetrics(SM_CXSCREEN)/2 - width/2; in InitWindow()
[all …]
/CafeSDK-2.12.13/system/include/cafe/gx2/
Dgx2Surface.h89 u32 width; member
502 u32 width, u32 height, in _GX2InitColorBuffer() argument
509 colorBuffer->surface.width = width; in _GX2InitColorBuffer()
548 u32 width, u32 height, in GX2InitColorBuffer() argument
552 _GX2InitColorBuffer(colorBuffer, width, height, format, aa); in GX2InitColorBuffer()
617 u32 width, u32 height, in GX2InitColorBufferFTV() argument
621 _GX2InitColorBuffer(colorBuffer, width, height, format, aa); in GX2InitColorBufferFTV()
655 u32 width, u32 height, in GX2InitDepthBuffer() argument
662 depthBuffer->surface.width = width; in GX2InitDepthBuffer()
1099 dstUVSurface->width >>= 1; in GX2InitNV12UVSurface()
/CafeSDK-2.12.13/system/src/lib/demo/
DdemoCapture.c32 u32 width, u32 height, u32 pitch, GX2SurfaceFormat format);
179 u32 width, u32 height, u32 pitch, GX2SurfaceFormat format) in _DEMOEncodeTGA() argument
183 u32 cols = DEMOCaptureData.colorBuffer.surface.width; in _DEMOEncodeTGA()
209 *pbuffer++ = (u8)(width % 256); // Image width lo in _DEMOEncodeTGA()
210 *pbuffer++ = (u8)(width / 256); // Image width hi in _DEMOEncodeTGA()
261 void DEMOCaptureInit(u32 width, u32 height, DEMOCaptureFormat format) in DEMOCaptureInit() argument
266 DEMOCaptureData.colorBuffer.surface.width = width; in DEMOCaptureInit()
307 DEMOCaptureData.TGAData = DEMOAlloc((u32)(18+5*width*height)); in DEMOCaptureInit()
416 DEMOCaptureData.colorBuffer.surface.width, in DEMOCaptureCopy()
/CafeSDK-2.12.13/system/include/cafe/gx2ut/
Dgx2utClear.h150 dstRect.right = GX2Max(1, colorBuffer->surface.width >> colorBuffer->viewMip); in GX2UTClearOp()
155 dstRect.right = GX2Max(1, depthBuffer->surface.width >> depthBuffer->viewMip); in GX2UTClearOp()
402 dstRect.right = GX2Max(1, dstSurface->width >> dstMip); in GX2UTClearSurface()
410 dstRect.right = GX2Max(1, depthBuffer->surface.width); in GX2UTClearSurface()
469 dstRect.right = GX2Max(1, colorBuffer->surface.width >> colorBuffer->viewMip); in GX2UTClearBuffersEx()
477 dstRect.right = GX2Max(1, depthBuffer->surface.width >> depthBuffer->viewMip); in GX2UTClearBuffersEx()
Dgx2utCopy.h170 srcRect.right = GX2Max(1, srcSurface->width >> srcMip); in GX2UTCopySurfaceOp()
172 dstRect.right = GX2Max(1, dstSurface->width >> dstMip); in GX2UTCopySurfaceOp()
465 srcRect.right = GX2Max(1, srcSurface->width >> srcMip); in GX2UTCopySurface()
470 dstRect.right = GX2Max(1, dstSurface->width >> dstMip); in GX2UTCopySurface()
/CafeSDK-2.12.13/system/src/lib/gx2ut/headers/cafe/gx2ut/
Dgx2utClear.h150 dstRect.right = GX2Max(1, colorBuffer->surface.width >> colorBuffer->viewMip); in GX2UTClearOp()
155 dstRect.right = GX2Max(1, depthBuffer->surface.width >> depthBuffer->viewMip); in GX2UTClearOp()
402 dstRect.right = GX2Max(1, dstSurface->width >> dstMip); in GX2UTClearSurface()
410 dstRect.right = GX2Max(1, depthBuffer->surface.width); in GX2UTClearSurface()
469 dstRect.right = GX2Max(1, colorBuffer->surface.width >> colorBuffer->viewMip); in GX2UTClearBuffersEx()
477 dstRect.right = GX2Max(1, depthBuffer->surface.width >> depthBuffer->viewMip); in GX2UTClearBuffersEx()
Dgx2utCopy.h170 srcRect.right = GX2Max(1, srcSurface->width >> srcMip); in GX2UTCopySurfaceOp()
172 dstRect.right = GX2Max(1, dstSurface->width >> dstMip); in GX2UTCopySurfaceOp()
465 srcRect.right = GX2Max(1, srcSurface->width >> srcMip); in GX2UTCopySurface()
470 dstRect.right = GX2Max(1, dstSurface->width >> dstMip); in GX2UTCopySurface()
/CafeSDK-2.12.13/system/src/tool/gfx/include/texUtils/
DTC_PluginAPI.h221 pLevel->width = pSurface->width >> nMipLevel; in GetMipLevel()
224 if (pLevel->width < 1) in GetMipLevel()
226 pLevel->width = 1; in GetMipLevel()

123