Subversion Repositories Games.Carmageddon

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
20 pmbaty 1
#include "def_mdl.h"
2
 
3
#include "brender/br_types.h"
4
 
5
br_face default_model_faces[12] = {
6
    { { 0, 1, 2, }, 1, NULL, 0, 0, 0, 0, BR_MATF_SMOOTH, 0, 0, { { 0 } }, 0.f },
7
    { { 0, 2, 3, }, 1, NULL, 0, 0, 0, 0, BR_MATF_LIGHT, 0, 0, { { 0 } }, 0.f, },
8
    { { 0, 4, 5, }, 1, NULL, 0, 0, 0, 0, BR_MATF_SMOOTH, 0, 0, { { 0 } }, 0.f, },
9
    { { 0, 5, 1, }, 1, NULL, 0, 0, 0, 0, BR_MATF_LIGHT, 0, 0, { { 0 } }, 0.f, },
10
    { { 1, 5, 6, }, 1, NULL, 0, 0, 0, 0, BR_MATF_SMOOTH, 0, 0, { { 0 } }, 0.f, },
11
    { { 1, 6, 2, }, 1, NULL, 0, 0, 0, 0, BR_MATF_LIGHT, 0, 0, { { 0 } }, 0.f, },
12
    { { 2, 6, 7, }, 1, NULL, 0, 0, 0, 0, BR_MATF_SMOOTH, 0, 0, { { 0 } }, 0.f, },
13
    { { 2, 7, 3, }, 1, NULL, 0, 0, 0, 0, BR_MATF_LIGHT, 0, 0, { { 0 } }, 0.f, },
14
    { { 3, 7, 4, }, 1, NULL, 0, 0, 0, 0, BR_MATF_SMOOTH, 0, 0, { { 0 } }, 0.f, },
15
    { { 3, 4, 0, }, 1, NULL, 0, 0, 0, 0, BR_MATF_LIGHT, 0, 0, { { 0 } }, 0.f, },
16
    { { 4, 7, 6, }, 1, NULL, 0, 0, 0, 0, BR_MATF_SMOOTH, 0, 0, { { 0 } }, 0.f, },
17
    { { 4, 6, 5, }, 1, NULL, 0, 0, 0, 0, BR_MATF_LIGHT, 0, 0, { { 0 } }, 0.f, },
18
};
19
 
20
br_vertex default_model_vertices[8] = {
21
    { { { -1.f, -1.f,  1.f }, }, { { .0f,  .99f, }, }, 0, 0, 0, 0, 0, { { 0 } }, },
22
    { { {  1.f, -1.f,  1.f }, }, { { .99f, .99f, }, }, 0, 0, 0, 0, 0, { { 0 } }, },
23
    { { {  1.f,  1.f,  1.f }, }, { { .99f, .99f, }, }, 0, 0, 0, 0, 0, { { 0 } }, },
24
    { { { -1.f,  1.f,  1.f }, }, { { .0f,  .99f, }, }, 0, 0, 0, 0, 0, { { 0 } }, },
25
    { { { -1.f, -1.f, -1.f }, }, { { .0f,  .0f,  }, }, 0, 0, 0, 0, 0, { { 0 } }, },
26
    { { {  1.f, -1.f, -1.f }, }, { { .99f, .0f,  }, }, 0, 0, 0, 0, 0, { { 0 } }, },
27
    { { {  1.f,  1.f, -1.f }, }, { { .99f, .0f,  }, }, 0, 0, 0, 0, 0, { { 0 } }, },
28
    { { { -1.f,  1.f, -1.f }, }, { { .0f,  .0f,  }, }, 0, 0, 0, 0, 0, { { 0 } }, },
29
};
30
 
31
br_model _BrDefaultModel = {
32
    0,
33
    "default_model",
34
    default_model_vertices,
35
    default_model_faces,
36
    BR_ASIZE(default_model_vertices),
37
    BR_ASIZE(default_model_faces),
38
    { { 0.f, 0.f, 0.f,}, },
39
    BR_MODF_UPDATEABLE,
40
    NULL,
41
    NULL,
42
    0,
43
    0.f,
44
    { { { 0 } }, { { 0 } } },
45
    NULL,
46
    NULL,
47
};