blob: f0e2808f08ebbdfc7600bb43c2d59850cabcb337 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
/*
* Copyright (c) 2021, Jesse Buhagiar <jooster669@gmail.com>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <AK/RefCounted.h>
#include <AK/Vector.h>
#include "Common.h"
// NOTE: We don't support indexed
class Mesh : public RefCounted<Mesh> {
public:
Mesh() = delete;
Mesh(const Vector<Triangle>& triangles)
: m_triangle_list(triangles)
{
}
void draw();
size_t triangle_count() const { return m_triangle_list.size(); }
private:
Vector<Triangle> m_triangle_list;
};
|