Font/Development: Difference between revisions
< Font
Content added Content deleted
(clarify it's vpu) |
(Added PS3 2007-01-30 details) |
||
Line 1: | Line 1: | ||
Compared to the release version, the vectors used here are the VPU variants rather than FPU. |
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 = |
= Structures = |
||
=== CgsResource::Font === |
=== CgsResource::Font === |
||
==== |
==== 2006-11-13 ==== |
||
{| class="wikitable" |
{| class="wikitable" |
||
|+ Xbox 360 |
|+ Xbox 360 |
||
Line 22: | Line 26: | ||
| 0x2C || 0x4 || uint32_t || muNumChars || || |
| 0x2C || 0x4 || uint32_t || muNumChars || || |
||
|- |
|- |
||
| 0x30 || 0x4 || [[#CgsResource::FontChar |
| 0x30 || 0x4 || [[#CgsResource::FontChar|FontChar]]* || mpaFontChars || || |
||
|- |
|- |
||
| 0x34 || 0x4 || uint32_t || muNumTexturePages || || |
| 0x34 || 0x4 || uint32_t || muNumTexturePages || || |
||
|- |
|- |
||
| 0x38 || 0x4 || [[Texture |
| 0x38 || 0x4 || [[Texture|Texture]]** || mpapTextures || || Imported resources |
||
|- |
|- |
||
| 0x3C || 0x4 || size_t || mSizeOfFont || Resource size || |
| 0x3C || 0x4 || size_t || mSizeOfFont || Resource size || |
||
|- |
|- |
||
| 0x40 || 0x4 || [[Texture State |
| 0x40 || 0x4 || [[Texture State|TextureState]]* || mpTextureState || || |
||
|- |
|- |
||
| 0x44 || 0x14 || Resource || mTextureStateResource || || |
| 0x44 || 0x14 || Resource || mTextureStateResource || || |
||
Line 39: | Line 43: | ||
|} |
|} |
||
==== |
==== 2007-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" |
{| class="wikitable" |
||
|+ Xbox 360 |
|+ Xbox 360 |
||
Line 58: | Line 99: | ||
| 0x2C || 0x4 || uint32_t || muNumChars || || |
| 0x2C || 0x4 || uint32_t || muNumChars || || |
||
|- |
|- |
||
| 0x30 || 0x4 || [[#CgsResource::FontChar |
| 0x30 || 0x4 || [[#CgsResource::FontChar|FontChar]]* || mpaFontChars || || |
||
|- |
|- |
||
| 0x34 || 0x4 || uint32_t || muNumTexturePages || || |
| 0x34 || 0x4 || uint32_t || muNumTexturePages || || |
||
|- |
|- |
||
| 0x38 || 0x4 || [[Texture |
| 0x38 || 0x4 || [[Texture|Texture]]** || mpapTextures || || Imported resources |
||
|- |
|- |
||
| 0x3C || 0x4 || size_t || mSizeOfFont || Resource size || |
| 0x3C || 0x4 || size_t || mSizeOfFont || Resource size || |
||
Line 78: | Line 119: | ||
=== CgsResource::FontChar === |
=== CgsResource::FontChar === |
||
==== |
==== 2006-11-13, 2007-01-30, 2007-02-22 ==== |
||
{| class="wikitable" |
{| class="wikitable" |
||
! Offset !! Length !! Type !! Name !! Description !! Comments |
! Offset !! Length !! Type !! Name !! Description !! Comments |
Latest revision as of 19:09, 18 June 2024
Compared to the release version, the vectors used here are the VPU variants rather than FPU.
Versions
- 2006-11-13: Used in the 2006-11-13 build of Burnout Paradise
- 2007-01-30, 2007-02-22: Used in the 2007-01-30 and 2007-02-22 builds of Burnout Paradise.
Structures
CgsResource::Font
2006-11-13
Offset | Length | Type | Name | Description | Comments |
---|---|---|---|---|---|
0x0 | 0x4 | uint32_t | muVersionId | 1 | |
0x4 | 0xC | Padding | |||
0x10 | 0x10 | 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 | FontChar* | mpaFontChars | ||
0x34 | 0x4 | uint32_t | muNumTexturePages | ||
0x38 | 0x4 | Texture** | mpapTextures | Imported resources | |
0x3C | 0x4 | size_t | mSizeOfFont | Resource size | |
0x40 | 0x4 | TextureState* | mpTextureState | ||
0x44 | 0x14 | Resource | mTextureStateResource | ||
0x58 | 0x80 | char[128] | macTypefaceFamilyName | ||
0xD8 | 0x80 | char[128] | macTypefaceStyleName |
2007-01-30, 2007-02-22
Offset | Length | Type | Name | Description | Comments |
---|---|---|---|---|---|
0x0 | 0x4 | uint32_t | muVersionId | 1 | |
0x4 | 0xC | Padding | |||
0x10 | 0x10 | 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 | FontChar* | mpaFontChars | ||
0x34 | 0x4 | uint32_t | muNumTexturePages | ||
0x38 | 0x4 | Texture** | mpapTextures | Imported resources | |
0x3C | 0x4 | size_t | mSizeOfFont | Resource size | |
0x40 | 0x4 | TextureState* | mpTextureState | ||
0x44 | 0x18 | Resource | mTextureStateResource | ||
0x5C | 0x4 | uint32_t | muFontHeightInPixels | ||
0x60 | 0x80 | char[128] | macTypefaceFamilyName | ||
0xE0 | 0x80 | char[128] | macTypefaceStyleName |
Offset | Length | Type | Name | Description | Comments |
---|---|---|---|---|---|
0x0 | 0x4 | uint32_t | muVersionId | 1 | |
0x4 | 0xC | Padding | |||
0x10 | 0x10 | 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 | FontChar* | mpaFontChars | ||
0x34 | 0x4 | uint32_t | muNumTexturePages | ||
0x38 | 0x4 | Texture** | mpapTextures | Imported resources | |
0x3C | 0x4 | size_t | mSizeOfFont | Resource size | |
0x40 | 0x4 | TextureState* | mpTextureState | ||
0x44 | 0x14 | Resource | mTextureStateResource | ||
0x58 | 0x4 | uint32_t | muFontHeightInPixels | ||
0x5C | 0x80 | char[128] | macTypefaceFamilyName | ||
0xDC | 0x80 | char[128] | macTypefaceStyleName |
CgsResource::FontChar
2006-11-13, 2007-01-30, 2007-02-22
Offset | Length | Type | Name | Description | Comments |
---|---|---|---|---|---|
0x0 | 0x2 | CgsUtf16 | mUtf16Unicode | FontChar ID | |
0x2 | 0x2 | Padding | |||
0x4 | 0x4 | uint32_t | muTexturePageId | Texture page ID | |
0x8 | 0x8 | Padding | |||
0x10 | 0x10 | vpu::Vector2 | mTopLeftUV | ||
0x20 | 0x10 | vpu::Vector2 | mDimensionsUV | ||
0x30 | 0x10 | vpu::Vector2 | mStart | ||
0x40 | 0x4 | float32_t | mfAdvance | ||
0x44 | 0x4 | bool32_t | mIsLowerCaseScale | ||
0x48 | 0x4 | uint32_t | muPriority |