trevor.reed Posted July 3, 2014 Share Posted July 3, 2014 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
elvieness Posted July 4, 2014 Share Posted July 4, 2014 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#implementThe 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_classUnigine::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
Recommended Posts