mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 15: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
24
Userland/Applications/3DFileViewer/Common.h
Normal file
24
Userland/Applications/3DFileViewer/Common.h
Normal file
|
@ -0,0 +1,24 @@
|
|||
/*
|
||||
* 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 <LibGL/GL/gl.h>
|
||||
|
||||
// Point in 3D space
|
||||
struct Vertex {
|
||||
GLfloat x;
|
||||
GLfloat y;
|
||||
GLfloat z;
|
||||
};
|
||||
|
||||
// A triangle defines a single "face" of a mesh
|
||||
struct Triangle {
|
||||
GLuint a;
|
||||
GLuint b;
|
||||
GLuint c;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue