Skip to content

Instantly share code, notes, and snippets.

@oblerion
Last active January 30, 2024 15:05
Show Gist options
  • Save oblerion/393528ff917e88c0beae6b717fb2a774 to your computer and use it in GitHub Desktop.
Save oblerion/393528ff917e88c0beae6b717fb2a774 to your computer and use it in GitHub Desktop.
raylib.h extend header
// 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