mirror of
https://github.com/simtactics/mysimulation.git
synced 2025-04-30 08:21:47 -04:00
commit clean up
This commit is contained in:
parent
51a2a68f05
commit
deaf3327e0
4 changed files with 29 additions and 20 deletions
5
.vscode/settings.json
vendored
5
.vscode/settings.json
vendored
|
@ -1,5 +0,0 @@
|
||||||
{
|
|
||||||
"files.associations": {
|
|
||||||
"libgldemo.h": "c"
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -17,15 +17,14 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#else
|
#else
|
||||||
#define APIENTRY
|
#define APIENTRY
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <GL/gl.h>
|
#include <GL/gl.h>
|
||||||
#include <GL/glu.h>
|
#include <GL/glu.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
//#include <GL/glext.h>
|
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
const char *__restrict Title;
|
const char *__restrict Title;
|
||||||
|
|
|
@ -251,7 +251,6 @@ static void BlendVertices()
|
||||||
|
|
||||||
static void DrawMeshes()
|
static void DrawMeshes()
|
||||||
{
|
{
|
||||||
//glPointSize(2.0);
|
|
||||||
glColor3f(1.0, 1.0, 1.0);
|
glColor3f(1.0, 1.0, 1.0);
|
||||||
glPushMatrix();
|
glPushMatrix();
|
||||||
glLoadIdentity();
|
glLoadIdentity();
|
||||||
|
|
|
@ -1,19 +1,35 @@
|
||||||
/*
|
/*
|
||||||
libvitaboy - Open source Openrl TSO character animation library
|
Special thanks to:
|
||||||
|
libvitaboy - Open source OpenGL TSO character animation library
|
||||||
Renderer.cpp - Copyright (c) 2012 Niotso Project <http://niotso.org/>
|
Renderer.cpp - Copyright (c) 2012 Niotso Project <http://niotso.org/>
|
||||||
Author(s): Fatbag <X-Fi6@phppoll.org>
|
Author(s): Fatbag <X-Fi6@phppoll.org>
|
||||||
|
*/
|
||||||
|
|
||||||
Permission to use, copy, modify, and/or distribute this software for any
|
/*
|
||||||
purpose with or without fee is hereby granted, provided that the above
|
Instructions:
|
||||||
copyright notice and this permission notice appear in all copies.
|
You must have the following files in the same directory as the Renderer binary:
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
Skeleton:
|
||||||
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
* skeleton.skel ("adult.skel" in ./avatardata/skeletons/)
|
||||||
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
||||||
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
Meshes:
|
||||||
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
* body.mesh (pick one from ./avatardata/bodies/meshes/)
|
||||||
ACTION OF CONTRACT, NErlIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
* head.mesh (pick one from ./avatardata/heads/meshes/)
|
||||||
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
* lhand.mesh (pick one from ./avatardata/hands/meshes/)
|
||||||
|
* rhand.mesh (pick one from ./avatardata/hands/meshes/)
|
||||||
|
|
||||||
|
Textures:
|
||||||
|
* body.jpg (pick one from ./avatardata/bodies/textures/)
|
||||||
|
* head.jpg (pick one from ./avatardata/heads/textures/)
|
||||||
|
* hand.jpg (pick one from ./avatardata/hands/textures/)
|
||||||
|
|
||||||
|
Animation:
|
||||||
|
* animation.anim (pick one from ./avatardata/animations/)
|
||||||
|
|
||||||
|
==== Controls ====
|
||||||
|
1: Toggle skeleton
|
||||||
|
2: Toggle the mesh
|
||||||
|
n: Animate the character
|
||||||
*/
|
*/
|
||||||
#include "raylib.h"
|
#include "raylib.h"
|
||||||
#include "raymath.h" // Required for: Vector3, Quaternion and Matrix functionality
|
#include "raymath.h" // Required for: Vector3, Quaternion and Matrix functionality
|
||||||
|
|
Loading…
Add table
Reference in a new issue