@@ -53,6 +53,29 @@ namespace rage {
5353 uint8_t field_29;
5454 uint8_t field_2A;
5555 grcTextureFormat Format;
56+
57+ CreateParams ()
58+ : UseFloat(0 )
59+ , Multisample(grcDevice::MSAA_None)
60+ , MultisampleQuality(1 )
61+ , MipLevels(1 )
62+ , IsResolvable(1 )
63+ , IsRenderable(1 )
64+ , field_1C(1 )
65+ , field_24(1 )
66+ , field_26(1 )
67+ , field_28(1 )
68+ , HasParent(0 )
69+ , Parent(0 )
70+ , field_18(0 )
71+ , field_20(0 )
72+ , field_25(0 )
73+ , field_27(0 )
74+ , field_29(0 )
75+ , field_2A(0 )
76+ , Format(grctfNone)
77+ {
78+ }
5679 };
5780
5881 public:
@@ -101,24 +124,28 @@ namespace rage {
101124 return plugin::CallVirtualMethodAndReturn<grcTexturePC*, 1 >(this , width, height, format, arg4, arg5);
102125 }
103126
104- grcTexturePC* Create (const char * path, grcImage* image) {
105- return plugin::CallVirtualMethodAndReturn<grcTexturePC*, 3 >(this , path, image);
127+ grcTexturePC* Create (grcImage* image, void * unk) {
128+ return plugin::CallVirtualMethodAndReturn<grcTexturePC*, 2 >(this , image, unk);
129+ }
130+
131+ grcTexturePC* CreateFromFile (const char * name, grcImage* image) {
132+ return plugin::CallVirtualMethodAndReturn<grcTexturePC*, 3 >(this , name, image);
106133 }
107134
108- grcRenderTarget * GetBackBuffer () {
109- return plugin::CallVirtualMethodAndReturn<grcRenderTarget *, 5 >(this );
135+ grcRenderTargetPC * GetBackBuffer () {
136+ return plugin::CallVirtualMethodAndReturn<grcRenderTargetPC *, 5 >(this );
110137 }
111138
112139 grcRenderTargetPC* CreateRenderTarget (const char * name, int32_t type, int32_t width, int32_t height, int32_t bitsPerPixel, CreateParams* params) {
113140 return plugin::CallVirtualMethodAndReturn<grcRenderTargetPC*, 14 >(this , name, type, width, height, bitsPerPixel, params);
114141 }
115142
116- void LockRenderTarget (int32_t index, grcRenderTarget * target, grcRenderTarget * depth, uint32_t layer, bool lockDepth, uint32_t mipToLock) {
117- plugin::CallVirtualMethod<15 >(index, target, depth, layer, lockDepth, mipToLock);
143+ void LockRenderTarget (int32_t index, grcRenderTargetPC * target, grcRenderTargetPC * depth, uint32_t layer, bool lockDepth, uint32_t mipToLock) {
144+ plugin::CallVirtualMethod<15 >(this , index, target, depth, layer, lockDepth, mipToLock);
118145 }
119146
120147 void UnlockRenderTarget (int32_t index, grcDevice::grcResolveFlags* resolveFlags, int32_t unused) {
121- plugin::CallVirtualMethod<16 >(index, resolveFlags, unused);
148+ plugin::CallVirtualMethod<16 >(this , index, resolveFlags, unused);
122149 }
123150
124151 public:
0 commit comments