8 #include <glm\gtc\matrix_transform.hpp>
9 #include <glm\gtc\type_ptr.hpp>
14 struct dgamelump_header {
21 unsigned short version;
28 //Don't read as (char*)
31 int version; //Version of prop
32 std::string mdlName; //Name of prop
37 unsigned short PropType; //Index into mdl name dict
38 unsigned short FirstLeaf; //Leaf index
39 unsigned short LeafCount;
42 int skin; //Skin number
45 glm::vec3 lightingorigin;
48 float forcedFadeScale;
51 unsigned short MinDXLevel;
52 unsigned short MaxDXLevel;
55 unsigned char MinCPULevel;
56 unsigned char MaxCPULevel;
57 unsigned char MinGPULevel;
58 unsigned char MaxGPULevel;
61 unsigned char diffuseModulation[4]; // Color and alpha modulation
67 int DisableDX360; //Actually a boolean, but reads incorrectly that way
73 std::vector<dgamelump> readGameLumps(std::ifstream* reader, bsp::lumpHeader info) {
76 dgamelump_header dgHeader;
78 reader->seekg(info.lumpOffset);
79 reader->read((char*)&dgHeader, sizeof(dgHeader));
81 std::vector<dgamelump> lumps;
82 for (int i = 0; i < dgHeader.lumpCount; i++) {
84 reader->read((char*)&lump, sizeof(lump));
85 lumps.push_back(lump);