mirror of
https://github.com/allankoechke/raylib-cpp.git
synced 2026-12-05 01:17:06 +00:00
@@ -25,23 +25,15 @@
|
||||
#ifndef RAYLIB_CPP_INCLUDE_VECTOR4_HPP_
|
||||
#define RAYLIB_CPP_INCLUDE_VECTOR4_HPP_
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
#include "raylib.h" // NOLINT
|
||||
#ifndef RAYLIB_CPP_NO_MATH
|
||||
#include "raymath.h" // NOLINT
|
||||
#endif
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#include "./raylib-cpp-utils.hpp"
|
||||
#ifndef RAYLIB_CPP_NO_MATH
|
||||
#include <cmath>
|
||||
#include <utility>
|
||||
#endif
|
||||
|
||||
#include "./raylib.hpp"
|
||||
#include "./raymath.hpp"
|
||||
#include "./raylib-cpp-utils.hpp"
|
||||
|
||||
namespace raylib {
|
||||
class Vector4 : public ::Vector4 {
|
||||
public:
|
||||
@@ -171,6 +163,10 @@ class Vector4 : public ::Vector4 {
|
||||
return ::ColorFromNormalized(*this);
|
||||
}
|
||||
|
||||
operator Color() {
|
||||
return ColorFromNormalized();
|
||||
}
|
||||
|
||||
protected:
|
||||
inline void set(::Vector4 vec4) {
|
||||
x = vec4.x;
|
||||
|
||||
Reference in New Issue
Block a user