Render3D::Render3D() { static bool needTableInit = true; if (needTableInit) { for (size_t i = 0; i < 32768; i++) { dsDepthToD24S8_LUT[i] = (u32)DS_DEPTH15TO24(i) << 8; } needTableInit = false; } Reset(); }
Render3D::Render3D() { _renderID = RENDERID_NULL; _renderName = "None"; static bool needTableInit = true; if (needTableInit) { for (size_t i = 0; i < 32768; i++) { dsDepthToD24_LUT[i] = (u32)DS_DEPTH15TO24(i); } needTableInit = false; } _framebufferWidth = GPU_FRAMEBUFFER_NATIVE_WIDTH; _framebufferHeight = GPU_FRAMEBUFFER_NATIVE_HEIGHT; _framebufferColorSizeBytes = 0; _framebufferColor = NULL; Reset(); }