Font/Development: Difference between revisions

clarify it's vpu
(Created page.)
 
(clarify it's vpu)
 
(2 intermediate revisions by one other user not shown)
Line 1:
Compared to the release version, the vectors used here are the VPU variants rather than FPU.
 
= Structures =
=== CgsResource::Font ===
Line 8 ⟶ 10:
| 0x0 || 0x4 || uint32_t || muVersionId || || 1
|-
| 0x4 || 0xC || || || paddingPadding ||
|-
| 0x10 || 0x80x10 || [[Vector2|vpu::Vector2]] || mScaleUV || ||
|-
| 0x18 || 0x8 || || || padding ||
|-
| 0x20 || 0x4 || float32_t || mfLowerCaseScale || ||
Line 28:
| 0x38 || 0x4 || [[Texture/Xbox 360 | Texture]]** || mpapTextures || || Not sure this is right
|-
| 0x3C || 0x4 || uint32_tsize_t || ?mSizeOfFont || Resource size || Or an unused pointer to EOF
|-
| 0x40 || 0x4 || [[Texture State | TextureState]]* || mpTextureState || ||
Line 46:
| 0x0 || 0x4 || uint32_t || muVersionId || || 1
|-
| 0x4 || 0xC || || || paddingPadding ||
|-
| 0x10 || 0x80x10 || [[Vector2|vpu::Vector2]] || mScaleUV || ||
|-
| 0x18 || 0x8 || || || padding ||
|-
| 0x20 || 0x4 || float32_t || mfLowerCaseScale || ||
Line 66 ⟶ 64:
| 0x38 || 0x4 || [[Texture/Xbox 360 | Texture]]** || mpapTextures || || Not sure this is right
|-
| 0x3C || 0x4 || uint32_tsize_t || ?mSizeOfFont || Resource size || Or an unused pointer to EOF
|-
| 0x40 || 0x4 || [[Texture State | TextureState]]* || mpTextureState || ||
Line 82 ⟶ 80:
==== Version 1 ====
{| class="wikitable"
|+ Xbox 360
! Offset !! Length !! Type !! Name !! Description !! Comments
|-
| 0x0 || 0x2 || [[Font../#CgsUnicode::UnicodeBuffer::Convert::CgsUtf16|CgsUtf16]] || ?mUtf16Unicode || FontChar ID ||
|-
| 0x2 || 0xE0x2 || || || paddingPadding ||
|-
| 0x100x4 || 0x80x4 || [[Vector2]]uint32_t || mTopLeftUVmuTexturePageId || Texture page ID ||
|-
| 0x180x8 || 0x8 || || || paddingPadding ||
|-
| 0x200x10 || 0x80x10 || [[Vector2|vpu::Vector2]] || mDimensionsUVmTopLeftUV || ||
|-
| 0x280x20 || 0x80x10 || [[Vector2|vpu::Vector2]] || mDimensionsUV || padding ||
|-
| 0x30 || 0x80x10 || [[Vector2|vpu::Vector2]] || mStart || ||
|-
| 0x38 || 0x8 || || || padding ||
|-
| 0x40 || 0x4 || float32_t || mfAdvance || ||
|-
| 0x44 || 0x4 || ?bool32_t || ?mIsLowerCaseScale || || No idea
|-
| 0x48 || 0x2 || uint16_t || mu16TexturePageId || ||
|-
| 0x4A || 0x1 || bool8_t || mbIsLowerCaseScale || ||
|-
| 0x4B0x48 || 0x10x4 || bool8_tuint32_t || mbIsRenderablemuPriority || ||
|}
117

edits