Jump to content

Recommended Posts

Posted

The map class handles loading of the Leadwerks .map file format. The format has not been documented because it changes frequently as new features are added. It's now on it's 28th version. However, the loader is always backwards-compatible with older versions of the format.

 

If you want to look at how the file format is structured, the attached code will demonstrate it.

Map.cpp

  • Upvote 3

My job is to make tools you love, with the features you want, and performance you can't live without.

Posted
const int Object::PivotClass = 1;
const int Object::ModelClass = 2;
const int Object::CameraClass = 3;
const int Object::DirectionalLightClass=4;
const int Object::SpotLightClass=5;
const int Object::PointLightClass=6;
const int Object::ListenerClass=7;
const int Object::Vec2Class=8;
const int Object::Vec3Class=9;
const int Object::Vec4Class=10;
const int Object::Mat4Class=11;
const int Object::SurfaceClass=12;
const int Object::BrushClass=13;
const int Object::EmitterClass=14;
const int Object::AttractorClass=15;
const int Object::JointClass=17;
const int Object::LensFlareClass=18;
const int Object::BoneClass=19;
const int Object::TerrainClass=20;
const int Object::TerrainPatchClass=21;
const int Object::BufferClass=22;
const int Object::ContextClass=23;
const int Object::ShaderClass = 24;
const int Object::ComponentClass = 25;
const int Object::TextureClass = 26;
const int Object::MaterialClass = 27;

  • Upvote 3

My job is to make tools you love, with the features you want, and performance you can't live without.

Posted

I think a useful new functions for maps would be

GetCameras (returns a list of camera)

GetLights (returns a list of lights)

GetModels (returns a list of Models)

etc

 

if folks need quick access to specific entity types

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...