mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 09:07:45 +00:00
3DFileViewer: Move Demos/GLTeapot
to Applications/3DFileViewer
Also changes the category to `Graphics`
This commit is contained in:
parent
132ecfc47b
commit
585e7890cd
15 changed files with 18 additions and 18 deletions
30
Userland/Applications/3DFileViewer/Mesh.h
Normal file
30
Userland/Applications/3DFileViewer/Mesh.h
Normal file
|
@ -0,0 +1,30 @@
|
|||
/*
|
||||
* Copyright (c) 2021, Jesse Buhagiar <jooster669@gmail.com>
|
||||
* Copyright (c) 2021, Mathieu Gaillard <gaillard.mathieu.39@gmail.com>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <AK/RefCounted.h>
|
||||
#include <AK/Vector.h>
|
||||
|
||||
#include "Common.h"
|
||||
|
||||
class Mesh : public RefCounted<Mesh> {
|
||||
public:
|
||||
Mesh() = delete;
|
||||
|
||||
Mesh(Vector<Vertex> vertices, Vector<Triangle> triangles);
|
||||
|
||||
size_t vertex_count() const { return m_vertex_list.size(); }
|
||||
|
||||
size_t triangle_count() const { return m_triangle_list.size(); }
|
||||
|
||||
void draw();
|
||||
|
||||
private:
|
||||
Vector<Vertex> m_vertex_list;
|
||||
Vector<Triangle> m_triangle_list;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue