Sign in to follow this  
Meshboy

From C# to C++

Recommended Posts

Okay, here comes another one. in my FPS game in C# i have a global <List> with all my walls. how can i do this in C++ and DirectX? I have a class that is called plane and i want to add all these in a collection and be able to iterate through them. Like: List<types.plane> planes = new List<FPS.types.plane>();

Share this post


Link to post
Share on other sites
You can use any of the STL sequence containers, depending on your exact needs. Ex:

std::vector<Plane> planes;

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this