| /CafeSDK-2.12.13-1/system/src/lib/demo/demowin/ |
| D | demowin_double_combo_box.cpp | 32 if (CursorColliding(this->x, this->y, this->width, this->height)) in CursorOver() 50 …liding(this->x, this->y - (this->height / 2 + this->height * visibleCount / 2) * flipMul, this->wi… in CursorOver() 64 float lOffset = (this->height + this->off * this->height) * flipMul - this->offset; in CursorOver() 66 … this->width / 2, this->y + this->height / 2 - this->height * visibleCount / 2 - lOffset, this->wi… in CursorOver() 124 float lOffset = (this->height + this->off * this->height) * flipMul - this->offset; in Update() 134 this->bar2.y = this->y - (5.5 + pos - position) * this->height; in Update() 197 CursorY() = window->GetY() + this->y - this->height * TabSubIndex() - lOffset; in Update() 202 …hOffset, this->y + this->height / 2 - this->height * visibleCount / 2 - lOffset, this->width / 2 -… in Update() 204 int choice = (window->GetY() + this->y + this->height / 2 - CursorY() - lOffset) / this->height; in Update() 231 … this->width / 2, this->y + this->height / 2 - this->height * visibleCount / 2 - lOffset, this->wi… in Update() [all …]
|
| D | demowin_combo_box.cpp | 40 if (CursorColliding(this->x, this->y, this->width, this->height)) in CursorOver() 56 …CursorColliding(this->x, this->y + this->height / 2 + this->height * visibleCount / 2, this->width… in CursorOver() 61 …CursorColliding(this->x, this->y - this->height / 2 - this->height * visibleCount / 2, this->width… in CursorOver() 87 this->bar.y = this->y - this->height * 5.5; in Update() 169 CursorY() = window->GetY() + this->y - (this->height + this->height * TabSubIndex()) * flipMul; in Update() 175 …hOffset, this->y - (this->height / 2 + this->height * visibleCount / 2) * flipMul, this->width - w… in Update() 177 …int choice = (window->GetY() + this->y - (this->height / 2) * flipMul - CursorY()) / this->height … in Update() 204 …olliding(this->x, this->y - (this->height / 2 + this->height * visibleCount / 2) * flipMul, this->… in Update() 230 if (CursorColliding(this->x, this->y, this->width, this->height)) in Update() 241 float arrowWidth = this->height; in Draw() [all …]
|
| D | demowin_tab_window.cpp | 34 float y = -height / 2; in Draw() 39 float buttonHeight = height; in Draw() 69 float height = this->GetHeight() - this->height; in PreUpdate() local 70 scrollBar->count = this->GetMaxHeight() - this->height; in PreUpdate() 71 scrollBar->max = height; in PreUpdate() 73 scrollBar->y = -height / 2 - this->height; in PreUpdate() 74 scrollBar->height = height; in PreUpdate() 86 if (canUpdate && menu->CursorColliding(0, -height / 2, GetWidth(), height)) in PreUpdate() 113 float height = this->GetHeight() - this->height; in PreDraw() local 114 scrollBar->count = this->GetMaxHeight() - this->height; in PreDraw() [all …]
|
| D | demowin_slider_bar.cpp | 23 ….window, CVec3(item.x - (item.width - item.height) / 2, item.y, item.z + 0.01), CVec2(item.height,… in Add() 24 ….window, CVec3(item.x + (item.width - item.height) / 2, item.y, item.z + 0.01), CVec2(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() 109 if (CursorColliding(this->x + x, this->y, this->height, this->height)) 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() 160 …DrawBox(CVec3(this->x + x, this->y, this->z + 0.002), CVec2(this->height, this->height), CVec4(col… in Draw() [all …]
|
| D | demowin_slider_bar_float.cpp | 23 ….window, CVec3(item.x - (item.width - item.height) / 2, item.y, item.z + 0.01), CVec2(item.height,… in Add() 24 ….window, CVec3(item.x + (item.width - item.height) / 2, item.y, item.z + 0.01), CVec2(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() 109 if (CursorColliding(this->x + x, this->y, this->height, this->height)) 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() 160 …DrawBox(CVec3(this->x + x, this->y, this->z + 0.002), CVec2(this->height, this->height), CVec4(col… in Draw() [all …]
|
| D | demowin_scroll_bar.cpp | 38 offY = (0.5 - offY) * (this->height - this->subHeight); in Update() 47 offY = 0.5 - offY / (this->height - this->subHeight); in Update() 111 subHeight = height * (1.0 - (float)sizeY / count); in Draw() 116 offY = (0.5 - offY) * (height - subHeight); in Draw() 123 DrawLine(CVec3(x - width / 2, y - height / 2, z + 0.0002), CVec2(0, height), CVec4(0, 0, 0)); in Draw()
|
| D | demowin_button.cpp | 39 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()
|
| D | demowin_held_button.cpp | 42 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-1/system/src/lib/demo/ |
| D | demowin.cpp | 164 …(_size), maxSize(_maxSize), x(position.x), y(position.y), width(size.x), height(size.y), maxWidth(… in Window() 167 maxHeight = height; in Window() 170 ASSERT(height >= 0); in Window() 171 ASSERT(maxHeight >= height); in Window() 175 …s, CVec3(width / 2 - SCROLLBAR_WIDTH / 2, -height / 2, 0.9), CVec2(SCROLLBAR_WIDTH, height), maxHe… in Window() 242 float ret = this->height; in GetHeight() 247 ret += custom->height; in GetHeight() 377 float height = this->GetHeight(); in PreUpdate() local 379 scrollBar->max = height; in PreUpdate() 381 scrollBar->y = -height / 2; in PreUpdate() [all …]
|
| D | demoCapture.c | 32 u32 width, u32 height, u32 pitch, GX2SurfaceFormat format); 179 u32 width, u32 height, u32 pitch, GX2SurfaceFormat format) in _DEMOEncodeTGA() argument 182 u32 rows = DEMOCaptureData.colorBuffer.surface.height; in _DEMOEncodeTGA() 211 *pbuffer++ = (u8)(height % 256); // Image height lo in _DEMOEncodeTGA() 212 *pbuffer++ = (u8)(height / 256); // Image height hi in _DEMOEncodeTGA() 261 void DEMOCaptureInit(u32 width, u32 height, DEMOCaptureFormat format) in DEMOCaptureInit() argument 267 DEMOCaptureData.colorBuffer.surface.height = height; in DEMOCaptureInit() 307 DEMOCaptureData.TGAData = DEMOAlloc((u32)(18+5*width*height)); in DEMOCaptureInit() 417 DEMOCaptureData.colorBuffer.surface.height, in DEMOCaptureCopy()
|
| /CafeSDK-2.12.13-1/system/include/cafe/demo/ |
| D | demoFont.h | 95 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() 112 colorBuffer->surface.height); in DEMOFontSetTarget()
|
| D | demoGfx.h | 189 u32 width, u32 height, u32 depth, in DEMOGfxInitColorBufferEx() argument 199 colorBuffer->surface.height = height; in DEMOGfxInitColorBufferEx() 227 u32 width, u32 height, u32 depth, in DEMOGfxInitDepthBufferEx() argument 237 depthBuffer->surface.height = height; in DEMOGfxInitDepthBufferEx()
|
| /CafeSDK-2.12.13-1/system/src/lib/demo/headers/cafe/demo/ |
| D | demoFont.h | 95 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() 112 colorBuffer->surface.height); in DEMOFontSetTarget()
|
| D | demoGfx.h | 189 u32 width, u32 height, u32 depth, in DEMOGfxInitColorBufferEx() argument 199 colorBuffer->surface.height = height; in DEMOGfxInitColorBufferEx() 227 u32 width, u32 height, u32 depth, in DEMOGfxInitDepthBufferEx() argument 237 depthBuffer->surface.height = height; in DEMOGfxInitDepthBufferEx()
|
| D | demoCapture.h | 64 void DEMOCaptureInit(u32 width, u32 height, DEMOCaptureFormat format);
|
| /CafeSDK-2.12.13-1/system/src/lib/demo/headers/cafe/demo/demowin/ |
| D | demowin_peripheral.h | 62 …bool CursorColliding(Window* window, float x, float y, float width, float height, bool ignoreBound… 74 …dth / 2 && CursorX() <= x + width / 2 && CursorY() >= y - height / 2 && CursorY() <= y + height / … 78 bool CursorColliding(float x, float y, float width, float height) in CursorColliding() 80 …dth / 2 && CursorX() <= x + width / 2 && CursorY() >= y - height / 2 && CursorY() <= y + height / … in CursorColliding()
|
| /CafeSDK-2.12.13-1/system/include/cafe/demo/demowin/ |
| D | demowin_peripheral.h | 62 …bool CursorColliding(Window* window, float x, float y, float width, float height, bool ignoreBound… 74 …dth / 2 && CursorX() <= x + width / 2 && CursorY() >= y - height / 2 && CursorY() <= y + height / … 78 bool CursorColliding(float x, float y, float width, float height) in CursorColliding() 80 …dth / 2 && CursorX() <= x + width / 2 && CursorY() >= y - height / 2 && CursorY() <= y + height / … in CursorColliding()
|
| /CafeSDK-2.12.13-1/system/src/tool/gfx/projects/SLConverter/deferredTestDX9/ |
| D | deferredTest.cpp | 30 unsigned height = 720; 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() 316 WindowRect.top = GetSystemMetrics(SM_CYSCREEN)/2 - height/2; in InitWindow() [all …]
|
| /CafeSDK-2.12.13-1/system/include/cafe/gx2/ |
| D | gx2Surface.h | 91 u32 height; member 502 u32 width, u32 height, in _GX2InitColorBuffer() argument 510 colorBuffer->surface.height = height; 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 663 depthBuffer->surface.height = height; in GX2InitDepthBuffer() 1098 dstUVSurface->height >>= 1; in GX2InitNV12UVSurface()
|
| /CafeSDK-2.12.13-1/system/src/tool/gfx/projects/TexConv2/tgaReader/ |
| D | tgaReader.cpp | 57 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 71 for(y = 0; y < height/2; y++) 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 92 for(y = 0; y < height; y++) in SwapFromRightToLeft() 110 TU_Error DecodeRLEImage(FILE*& pFile, TGA_INFO* pTGAD, u8* pImg, u32 width, u32 height, u32 bpp) in DecodeRLEImage() argument [all …]
|
| /CafeSDK-2.12.13-1/system/src/lib/gx2ut/headers/cafe/gx2ut/ |
| D | gx2utClear.h | 155 dstRect.bottom = GX2Max(1, colorBuffer->surface.height >> colorBuffer->viewMip); in GX2UTClearOp() 160 dstRect.bottom = GX2Max(1, depthBuffer->surface.height >> depthBuffer->viewMip); in GX2UTClearOp() 411 dstRect.bottom = GX2Max(1, dstSurface->height >> dstMip); in GX2UTClearSurface() 419 dstRect.bottom = GX2Max(1, depthBuffer->surface.height); in GX2UTClearSurface() 478 dstRect.bottom = GX2Max(1, colorBuffer->surface.height >> colorBuffer->viewMip); in GX2UTClearBuffersEx() 486 dstRect.bottom = GX2Max(1, depthBuffer->surface.height >> depthBuffer->viewMip); in GX2UTClearBuffersEx()
|
| D | gx2utCopy.h | 185 srcRect.bottom = GX2Max(1, srcSurface->height >> srcMip); in GX2UTCopySurfaceOp() 187 dstRect.bottom = GX2Max(1, dstSurface->height >> dstMip); in GX2UTCopySurfaceOp() 480 srcRect.bottom = GX2Max(1, srcSurface->height >> srcMip); in GX2UTCopySurface() 485 dstRect.bottom = GX2Max(1, dstSurface->height >> dstMip); in GX2UTCopySurface()
|
| /CafeSDK-2.12.13-1/system/include/cafe/gx2ut/ |
| D | gx2utClear.h | 155 dstRect.bottom = GX2Max(1, colorBuffer->surface.height >> colorBuffer->viewMip); in GX2UTClearOp() 160 dstRect.bottom = GX2Max(1, depthBuffer->surface.height >> depthBuffer->viewMip); in GX2UTClearOp() 411 dstRect.bottom = GX2Max(1, dstSurface->height >> dstMip); in GX2UTClearSurface() 419 dstRect.bottom = GX2Max(1, depthBuffer->surface.height); in GX2UTClearSurface() 478 dstRect.bottom = GX2Max(1, colorBuffer->surface.height >> colorBuffer->viewMip); in GX2UTClearBuffersEx() 486 dstRect.bottom = GX2Max(1, depthBuffer->surface.height >> depthBuffer->viewMip); in GX2UTClearBuffersEx()
|
| D | gx2utCopy.h | 185 srcRect.bottom = GX2Max(1, srcSurface->height >> srcMip); in GX2UTCopySurfaceOp() 187 dstRect.bottom = GX2Max(1, dstSurface->height >> dstMip); in GX2UTCopySurfaceOp() 480 srcRect.bottom = GX2Max(1, srcSurface->height >> srcMip); in GX2UTCopySurface() 485 dstRect.bottom = GX2Max(1, dstSurface->height >> dstMip); in GX2UTCopySurface()
|
| /CafeSDK-2.12.13-1/system/src/tool/gfx/include/texUtils/ |
| D | TC_PluginAPI.h | 222 pLevel->height = pSurface->height >> nMipLevel; in GetMipLevel() 228 if (pLevel->height < 1) in GetMipLevel() 230 pLevel->height = 1; in GetMipLevel()
|