2D_Game_Engine
Loading...
Searching...
No Matches
Classes | Functions
structs.hpp File Reference

Go to the source code of this file.

Classes

struct  Vec2
 
struct  Vec3
 
struct  Vec4
 
struct  Vertex
 
struct  LineVertex
 
struct  PointVertex
 
struct  TriangleVertex
 
struct  Rect
 

Functions

Vec2 operator+ (Vec2 a, Vec2 b)
 
Vec2 operator- (Vec2 a, Vec2 b)
 
Vec2 operator* (Vec2 a, Vec2 b)
 
Vec2 operator* (float a, Vec2 b)
 
Vec2 operator* (Vec2 a, float b)
 
Vec2 operator/ (Vec2 a, Vec2 b)
 
Vec2 operator/ (float a, Vec2 b)
 
Vec2 operator/ (Vec2 a, int b)
 
std::ostream & operator<< (std::ostream &os, const Vec2 &v)
 
std::ostream & operator<< (std::ostream &os, const Vec3 &v)
 
std::ostream & operator<< (std::ostream &os, const Vec4 &v)
 
std::ostream & operator<< (std::ostream &os, const Vertex &v)
 
std::ostream & operator<< (std::ostream &os, const LineVertex &v)
 
std::ostream & operator<< (std::ostream &os, const PointVertex &v)
 
std::ostream & operator<< (std::ostream &os, const TriangleVertex &v)
 
std::ostream & operator<< (std::ostream &os, const Rect &v)
 

Function Documentation

◆ operator*() [1/3]

Vec2 operator* ( float a,
Vec2 b )

Definition at line 37 of file structs.cpp.

◆ operator*() [2/3]

Vec2 operator* ( Vec2 a,
float b )

Definition at line 41 of file structs.cpp.

◆ operator*() [3/3]

Vec2 operator* ( Vec2 a,
Vec2 b )

Definition at line 33 of file structs.cpp.

◆ operator+()

Vec2 operator+ ( Vec2 a,
Vec2 b )

Definition at line 25 of file structs.cpp.

◆ operator-()

Vec2 operator- ( Vec2 a,
Vec2 b )

Definition at line 29 of file structs.cpp.

◆ operator/() [1/3]

Vec2 operator/ ( float a,
Vec2 b )

Definition at line 49 of file structs.cpp.

◆ operator/() [2/3]

Vec2 operator/ ( Vec2 a,
int b )

Definition at line 53 of file structs.cpp.

◆ operator/() [3/3]

Vec2 operator/ ( Vec2 a,
Vec2 b )

Definition at line 45 of file structs.cpp.

◆ operator<<() [1/8]

std::ostream & operator<< ( std::ostream & os,
const LineVertex & v )

Definition at line 80 of file structs.cpp.

◆ operator<<() [2/8]

std::ostream & operator<< ( std::ostream & os,
const PointVertex & v )

Definition at line 85 of file structs.cpp.

◆ operator<<() [3/8]

std::ostream & operator<< ( std::ostream & os,
const Rect & v )

Definition at line 95 of file structs.cpp.

◆ operator<<() [4/8]

std::ostream & operator<< ( std::ostream & os,
const TriangleVertex & v )

Definition at line 90 of file structs.cpp.

◆ operator<<() [5/8]

std::ostream & operator<< ( std::ostream & os,
const Vec2 & v )

Definition at line 60 of file structs.cpp.

◆ operator<<() [6/8]

std::ostream & operator<< ( std::ostream & os,
const Vec3 & v )

Definition at line 65 of file structs.cpp.

◆ operator<<() [7/8]

std::ostream & operator<< ( std::ostream & os,
const Vec4 & v )

Definition at line 70 of file structs.cpp.

◆ operator<<() [8/8]

std::ostream & operator<< ( std::ostream & os,
const Vertex & v )

Definition at line 75 of file structs.cpp.