Jump to content

[SOLVED] C++ only Sample


photo

Recommended Posts

Hello,

 

I'm developing a prototype using the C++ API of Unigine. It would be very helpful to have a sample graphics project included (like the Players or Objects examples) in the evaluation kit that uses only the C++ API and does not depend on UnigineScript at all. Would this be possible?

 

Thanks!

Link to comment

Hello Trevor,

 

For now, you can refer to the article on Creating C++ Application: https://developer.unigine.com/en/docs/1.0/cpp_api/application#implement
The code of the application presented in this article can be used as it is.

To handle players and objects, you can use methods of the corresponding classes:
Unigine::Player class: https://developer.unigine.com/en/docs/1.0/cpp_api/reference/api_player_class
Unigine::Object class: https://developer.unigine.com/en/docs/1.0/cpp_api/reference/api_object_class

The other objects (such as ObjectBillboard, ObjectMesh, etc.) are inherited from the Unigine::Object class and also have a specific set of methods.

 

For example, to set a material for an object surface, you can use the setMaterial() method.

Link to comment
×
×
  • Create New...