source: trunk/src/mesh/mesh.h @ 2077

Last change on this file since 2077 was 2077, checked in by sam, 7 years ago

mesh: start working on mesh and submesh stuff.

File size: 828 bytes
Line 
1//
2// Lol Engine
3//
4// Copyright: (c) 2010-2012 Sam Hocevar <sam@hocevar.net>
5//   This program is free software; you can redistribute it and/or
6//   modify it under the terms of the Do What The Fuck You Want To
7//   Public License, Version 2, as published by Sam Hocevar. See
8//   http://sam.zoy.org/projects/COPYING.WTFPL for more details.
9//
10
11//
12// The Mesh class
13// --------------
14//
15
16#if !defined __MESH_MESH_H__
17#define __MESH_MESH_H__
18
19namespace lol
20{
21
22class SubMesh
23{
24public:
25    SubMesh();
26    ~SubMesh();
27
28    void Render(mat4 const &model);
29
30private:
31    Array<vec3> m_vertices;
32    Array<vec2> m_uvs;
33    Array<vec3> m_normals;
34};
35
36class Mesh
37{
38public:
39    Mesh();
40    ~Mesh();
41
42    void Render(mat4 const &model);
43
44private:
45    Array<SubMesh *> m_submeshes;
46};
47
48} /* namespace lol */
49
50#endif /* __MESH_MESH_H__ */
51
Note: See TracBrowser for help on using the repository browser.