Commit Graph
6 Commits
Author SHA1 Message Date
SatyandClaude Opus 5.5 89c3a2ac98 ICursorDraw, D3D buffers: first D3D9 window
CGxDevice/CGxDeviceD3d::ICursorDraw, GxUpdateAlphaRef, CGxShader::Valid,
D3D BufLock/BufUnlock/BufData with IBufLock/IBufUnlock and CreatePoolAPI,
EmergencyMem::Lock/Unlock. GxTest defaults to its exe folder for data and
now runs the clear/present loop on both architectures.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-25 03:40:35 +02:00
SatyandClaude Opus 5.5 698a289577 Gx pass 6: render-state core, logging, window clamps
- CGxStateBom union, CGxPushedRenderState; typed render-state arrays in CGxDevice
- IRsDirty, IRsForceUpdate x2, IRsSync, IRsInit, RsSet, RsPush, RsPop
- MasterEnableSet, XformSetView, TexSetFlags, TexSetWrap, CGxTexFlags::operator!=
- GxRsSet (void*, int32_t, float), GxTexSetFlags, GxTexSetWrap
- CGxDevice::Log x4, LogOpen, LogClose; GxLog, GxLogOpen, GxLogClose, GxLogCrashInfo; g_gxApiNames
- ClampRectToWindow, ClampRect*ByAspect
- OsCreateDirectory (Os/Win32|Win64/Path.cpp)

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-24 23:30:51 +02:00
SatyandClaude Opus 5.5 3e0d01aff0 Gx pass 5: textures, buffers, vertex format tables
- CGxTexFlags bitfields + 10-arg ctor with default args; CGxTex ctor/dtor, second TSLink at +0x48
- CiRect() zero-initializes (inline only)
- CGxDevice: TexCreate (returns 1), TexDestroy, ICursorCreate, CursorUnlock, BufDestroy, PrimVertexPtr;
  m_textures is a TSExplicitList
- CGxPool::UnlinkBuf (guessed name)
- Gx: GxTexCreate x3, GxTexUpdate(rect), GxPrimVertexPtr x2, GxPrimLockVertexPtrs
- Gx/Buffer.h/.cpp: Buffer::s_vertexBufDesc and the 14 per-format attribute tables

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-24 23:13:09 +02:00
SatyandClaude Opus 5.5 4ab6cba641 Gx pass 4: small CGxDevice members, shader constant shadows, texture helpers
- CGxDevice: window rects, caps flags, scissor, prim state, lights, clip planes, BufStream/BufSizeSet,
  Tex* helpers, ShaderConstantsClear/Set/Lock/Unlock, ICursorDestroy/ICursorUpdate, ClampRect*, DeviceGamma,
  DeviceScreenShot, XformPushAndSet
- Gx wrappers: GxBufStream, GxXformPush(xf, m), GxTexSetCannotUpdate/SetUserData/Parameters/SetDataFormat,
  GxTexUpdate, GxPrimIndexPtr, GxPrimLockIndexPtr
- CGxTex fields typed (EGxTexTarget, EGxTexFormat, GxTexUserFunc)

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-24 22:54:33 +02:00
SatyandClaude Opus 5.5 f047b71145 Gx pass 3: Gx* wrappers, small CGxDevice members, portable Storm error constants
- Gx wrappers: GxXform*, GxBuf*, GxDraw, GxDrawLockedElements, GxSceneClear, GxTexDestroy/Copy/Reusable,
  GxQueryCreate/Destroy, max FPS, GxGetBlitFormat, GxHasContext, GxIsWindowVisible, GxMasterEnable
- CGxDevice: DeviceApi, CapsHasContext, CapsIsWindowVisible, MasterEnable, DeviceClearScreenShot, XformPush
- CGxTexParms, EGxXform, BlitFormat
- STORM_ERROR_SUCCESS/NOT_ENOUGH_MEMORY/INVALID_PARAMETER replace Win32 ERROR_* in general files;
  windows.h removed from them

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-24 22:45:13 +02:00
SatyandClaude Opus 5.5 597201ec6a Gx pass 1: device-free leaves, C3Vector ctors, Gx enums into Gx/Types.h
- CGxFormat(), CGxMatrixStack() + Identity, CGxLight(), CGxApiLight::operator= (moved to CGxLight.h),
  CGxPool::Invalidate/Discard, CGxGammaRamp::Set
- Gx.h/Gx.cpp: GxApiSupported, GxVertexSize, GxVertexAttribOffset, GxCalcTexelStrideInBytes + tables
- C3Vector() zero-inits and C3Vector(x, y, z) exists (inline only); CAaBox/C3Ray/CFrustum/Intersect rely on it
- EGxApi/EGxTexFormat/EGxVertexBufferFormat moved to Engine/Source/Gx/Types.h
- struct/class forward declaration mismatches fixed in CGxDevice.h and CGxPool.h

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-24 22:05:14 +02:00