source: trunk/src/mesh/mesh.cpp @ 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: 763 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#if defined HAVE_CONFIG_H
12#   include "config.h"
13#endif
14
15#include <cstring>
16#include <cstdlib>
17
18#include "core.h"
19
20namespace lol
21{
22
23Mesh::Mesh()
24{
25}
26
27Mesh::~Mesh()
28{
29}
30
31void Mesh::Render(mat4 const &model)
32{
33    for (int i = 0; i < m_submeshes.Count(); ++i)
34        m_submeshes[i]->Render(model);
35}
36
37SubMesh::SubMesh()
38{
39}
40
41SubMesh::~SubMesh()
42{
43}
44
45void SubMesh::Render(mat4 const &model)
46{
47}
48
49} /* namespace lol */
50
Note: See TracBrowser for help on using the repository browser.