terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches
Texture.cs
Go to the documentation of this file.
1using System;
4
6{
7 // Token: 0x020003A9 RID: 937
8 public abstract class Texture : GraphicsResource
9 {
10 // Token: 0x1700034B RID: 843
11 // (get) Token: 0x06001908 RID: 6408 RVA: 0x0006A43C File Offset: 0x0006863C
12 internal int SortingKey
13 {
14 get
15 {
16 return this._sortingKey;
17 }
18 }
19
20 // Token: 0x1700034C RID: 844
21 // (get) Token: 0x06001909 RID: 6409 RVA: 0x0006A450 File Offset: 0x00068650
23 {
24 get
25 {
26 return this._format;
27 }
28 }
29
30 // Token: 0x1700034D RID: 845
31 // (get) Token: 0x0600190A RID: 6410 RVA: 0x0006A464 File Offset: 0x00068664
32 public int LevelCount
33 {
34 get
35 {
36 return this._levelCount;
37 }
38 }
39
40 // Token: 0x0600190B RID: 6411 RVA: 0x0006A478 File Offset: 0x00068678
41 internal static int CalculateMipLevels(int width, int height = 0, int depth = 0)
42 {
43 if (!true)
44 {
45 }
46 int num = Math.Max(Math.Max(0, width), height);
47 return 1;
48 }
49
50 // Token: 0x0600190C RID: 6412 RVA: 0x0006A49C File Offset: 0x0006869C
51 internal static void GetSizeForLevel(int width, int height, int level, [Out] int w, [Out] int h)
52 {
53 w.m_value = width;
54 h.m_value = height;
55 h.m_value = height;
56 if (height != 0)
57 {
58 return;
59 }
60 int num = 1;
61 h.m_value = num;
62 }
63
64 // Token: 0x0600190D RID: 6413 RVA: 0x0006A4D8 File Offset: 0x000686D8
65 internal static void GetSizeForLevel(int width, int height, int depth, int level, [Out] int w, [Out] int h, [Out] int d)
66 {
67 w.m_value = width;
68 h.m_value = height;
69 d.m_value = depth;
70 int num = 1;
71 w.m_value = num;
72 int num2 = 1;
74 }
75
76 // Token: 0x0600190E RID: 6414 RVA: 0x0006A51C File Offset: 0x0006871C
77 internal int GetPitch(int width)
78 {
79 return this._format.GetSize();
80 }
81
82 // Token: 0x0600190F RID: 6415 RVA: 0x0006A538 File Offset: 0x00068738
83 protected internal override void GraphicsDeviceResetting()
84 {
85 }
86
87 // Token: 0x06001910 RID: 6416 RVA: 0x0006A548 File Offset: 0x00068748
88 protected Texture()
89 {
90 int num = Interlocked.Increment(0);
91 this._sortingKey = num;
92 base..ctor();
93 }
94
95 // Token: 0x04002774 RID: 10100
97
98 // Token: 0x04002775 RID: 10101
99 internal int _levelCount;
100
101 // Token: 0x04002776 RID: 10102
103
104 // Token: 0x04002777 RID: 10103
105 private static int _lastSortingKey;
106 }
107}
class f__AnonymousType0<< Count > j__TPar
static int CalculateMipLevels(int width, int height=0, int depth=0)
Definition Texture.cs:41
static void GetSizeForLevel(int width, int height, int level, [Out] int w, [Out] int h)
Definition Texture.cs:51
static void GetSizeForLevel(int width, int height, int depth, int level, [Out] int w, [Out] int h, [Out] int d)
Definition Texture.cs:65
static byte Max(byte val1, byte val2)
Definition Math.cs:111
static int Increment(int location)