Obj parser, plane is loading correctly with texcoords etc! now OS defines the bitmap layout and format
This commit is contained in:
14
objparser.h
Normal file
14
objparser.h
Normal file
@@ -0,0 +1,14 @@
|
||||
#pragma once
|
||||
struct Obj {
|
||||
float* vertices; // sets of 3 floats
|
||||
float* texture; // sets of 2 floats
|
||||
float* normals; // sets of 3 floats
|
||||
int vertices_count; // count of sets(vertices, textures, normals)
|
||||
|
||||
int* indices; // layout: vvv/ttt/nnn
|
||||
int indices_count; // 1 count == 1 full face == 3vertex indices, 3 texture coordinate indices, 3 normal indices
|
||||
size_t memory_taken;
|
||||
};
|
||||
|
||||
Obj Obj_Parse(char* memory, size_t memory_size, char* data);
|
||||
void Obj_Test();
|
||||
Reference in New Issue
Block a user