Font/Development: Difference between revisions

Added PS3 2007-01-30 details
(clarify it's vpu)
(Added PS3 2007-01-30 details)
 
Line 1:
Compared to the release version, the vectors used here are the VPU variants rather than FPU.
 
= Versions =
* 2006-11-13: Used in the [[Burnout Paradise(2006-11-13 build)|2006-11-13]] build of Burnout Paradise
* 2007-01-30, 2007-02-22: Used in the [[Burnout Paradise(2007-01-30 build)|2007-01-30]] and [[Burnout Paradise(2007-02-22 build)|2007-02-22]] builds of Burnout Paradise.
 
= Structures =
=== CgsResource::Font ===
==== Version 1 (2006-11-13) ====
{| class="wikitable"
|+ Xbox 360
Line 22 ⟶ 26:
| 0x2C || 0x4 || uint32_t || muNumChars || ||
|-
| 0x30 || 0x4 || [[#CgsResource::FontChar | FontChar]]* || mpaFontChars || ||
|-
| 0x34 || 0x4 || uint32_t || muNumTexturePages || ||
|-
| 0x38 || 0x4 || [[Texture/Xbox 360 | Texture]]** || mpapTextures || || Not sure this isImported rightresources
|-
| 0x3C || 0x4 || size_t || mSizeOfFont || Resource size ||
|-
| 0x40 || 0x4 || [[Texture State | TextureState]]* || mpTextureState || ||
|-
| 0x44 || 0x14 || Resource || mTextureStateResource || ||
Line 39 ⟶ 43:
|}
 
==== Version 12007-01-30, (2007-02-22) ====
{| class="wikitable"
|+ PlayStation 3
! Offset !! Length !! Type !! Name !! Description !! Comments
|-
| 0x0 || 0x4 || uint32_t || muVersionId || || 1
|-
| 0x4 || 0xC || || || Padding ||
|-
| 0x10 || 0x10 || [[Vector2|vpu::Vector2]] || mScaleUV || ||
|-
| 0x20 || 0x4 || float32_t || mfLowerCaseScale || ||
|-
| 0x24 || 0x4 || float32_t || mfBaseLine || ||
|-
| 0x28 || 0x4 || float32_t || mfXHeight || ||
|-
| 0x2C || 0x4 || uint32_t || muNumChars || ||
|-
| 0x30 || 0x4 || [[#CgsResource::FontChar|FontChar]]* || mpaFontChars || ||
|-
| 0x34 || 0x4 || uint32_t || muNumTexturePages || ||
|-
| 0x38 || 0x4 || [[Texture|Texture]]** || mpapTextures || || Imported resources
|-
| 0x3C || 0x4 || size_t || mSizeOfFont || Resource size ||
|-
| 0x40 || 0x4 || [[Texture State|TextureState]]* || mpTextureState || ||
|-
| 0x44 || 0x18 || Resource || mTextureStateResource || ||
|-
| 0x5C || 0x4 || uint32_t || muFontHeightInPixels || ||
|-
| 0x60 || 0x80 || char[128] || macTypefaceFamilyName || ||
|-
| 0xE0 || 0x80 || char[128] || macTypefaceStyleName || ||
|}
 
{| class="wikitable"
|+ Xbox 360
Line 58 ⟶ 99:
| 0x2C || 0x4 || uint32_t || muNumChars || ||
|-
| 0x30 || 0x4 || [[#CgsResource::FontChar | FontChar]]* || mpaFontChars || ||
|-
| 0x34 || 0x4 || uint32_t || muNumTexturePages || ||
|-
| 0x38 || 0x4 || [[Texture/Xbox 360 | Texture]]** || mpapTextures || || Not sure this isImported rightresources
|-
| 0x3C || 0x4 || size_t || mSizeOfFont || Resource size ||
Line 78 ⟶ 119:
 
=== CgsResource::FontChar ===
==== Version2006-11-13, 12007-01-30, 2007-02-22 ====
{| class="wikitable"
! Offset !! Length !! Type !! Name !! Description !! Comments