A
A
Airat19952016-10-15 05:13:26
C++ / C#
Airat1995, 2016-10-15 05:13:26

What is the best way to activate textures?

Hello, I have a small question. How to activate textures if I don't know their number? I came up with the idea to get an activated texture and write a big switch, but as I understand it, this is far from the best option. There is also an idea to write a large enum, but this is a so-so idea. Perhaps you can somehow convert the string to an enum value?
PS: I looked at the values ​​of these textures, and another question arose. Is it possible to write like this: 0x84DF+0x0001?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question