multitheftauto / mtasa-blue

Multi Theft Auto is a game engine that incorporates an extendable network play element into a proprietary commercial single-player game.
https://multitheftauto.com
GNU General Public License v3.0
1.38k stars 424 forks source link

new function dxCreateCustomTexture(...) #1230

Closed Petya0x44 closed 4 years ago

Petya0x44 commented 4 years ago

I suggest creating a function for create custom texture (from gta sa). This function can be used, for example, to design one object with the texture of another object. The advantage of this function is that there is no need to download the txd file, since these textures are already present in GTA SA.

Syntax dxCreateCustomTexture(string txd_name, string texture_name)

Example

texture = dxCreateCustomTexture("des_se2", "des_dirt1")
dxSetShaderValue(shader, "tex", texture)
engineApplyShaderToWorldTexture(shader, "vehiclegeneric256")
AfuSensi commented 4 years ago

I think this functionality is already implemented in https://github.com/multitheftauto/mtasa-blue/pull/1058

Petya0x44 commented 4 years ago

I think this functionality is already implemented in #1058

Yes, this is analogous to what i suggest. Sorry i didn't see this issue

qaisjp commented 4 years ago

Duplicate of #1040