Last active
January 30, 2024 15:05
-
-
Save oblerion/393528ff917e88c0beae6b717fb2a774 to your computer and use it in GitHub Desktop.
raylib.h extend header
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// raylib2 ver 0.1 | |
// describle : raylib extend with new function | |
// author : oblerion | |
// license : MIT 2024 | |
#pragma once | |
#include "raylib.h" | |
#include "raymath.h" | |
// ---------- declare function -------------- | |
void DrawModelEx2(Model model,Vector3 position,Vector3 rotation,float scale,Color tint); // draw model with vector3 XYZ rotation in radiant | |
// ---------- define function ---------------- | |
void DrawModelEx2(Model model, Vector3 position, Vector3 rotation, float scale, Color tint) | |
{ | |
model.transform = MatrixRotateXYZ(rotation); | |
DrawModel(model,position,scale,tint); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment