Update Gitignore and Basic Camera / Level Implementation

This commit is contained in:
2024-03-08 12:27:04 +01:00
parent 3dcfc744d5
commit 9dbfef5e78
15 changed files with 209 additions and 63 deletions

View File

@@ -4,94 +4,87 @@
//-----------------------------------------------------------------
// Window Constructors
//-----------------------------------------------------------------
Window::Window( const std::string& title , float width , float height , bool isVSyncOn )
:title{ title }
,width{ width }
,height{ height }
,isVSyncOn{ isVSyncOn }
{
Window::Window(const std::string& title, float width, float height, bool isVSyncOn)
: title { title }
, width { width }
, height { height }
, isVSyncOn { isVSyncOn } {
}
//-----------------------------------------------------------------
// Point2f Constructors
//-----------------------------------------------------------------
Point2f::Point2f( )
:Point2f{ 0.0f, 0.0f }
{
Point2f::Point2f()
: Point2f { 0.0f, 0.0f } {
}
Point2f::Point2f( float x, float y )
:x{ x }, y{ y }
{
Point2f::Point2f(float x, float y)
: x { x }, y { y } {
}
// Point2f::Point2f(int x, int y)
// : x { (float)x }, y { (float)y } {
// }
//-----------------------------------------------------------------
// Rectf Constructors
//-----------------------------------------------------------------
Rectf::Rectf( )
:Rectf{ 0.0f, 0.0f, 0.0f, 0.0f }
{
Rectf::Rectf()
: Rectf { 0.0f, 0.0f, 0.0f, 0.0f } {
}
Rectf::Rectf( float left, float bottom, float width, float height )
:left{ left }
,bottom{ bottom }
,width{ width }
,height{ height }
{
Rectf::Rectf(float left, float bottom, float width, float height)
: left { left }
, bottom { bottom }
, width { width }
, height { height } {
}
// Rectf::Rectf(int left, int bottom, int width, int height) : left { (float)left }, bottom { (float)bottom }, width { (float)width }, height { (float)height } {
// }
//-----------------------------------------------------------------
// Color4f Constructors
//-----------------------------------------------------------------
Color4f::Color4f( )
:Color4f{ 0.0f, 0.0f, 0.0f, 1.0f }
{
Color4f::Color4f()
: Color4f { 0.0f, 0.0f, 0.0f, 1.0f } {
}
Color4f::Color4f( float r, float g, float b, float a )
:r{ r }
,g{ g }
,b{ b }
,a{ a }
{
Color4f::Color4f(float r, float g, float b, float a)
: r { r }
, g { g }
, b { b }
, a { a } {
}
//-----------------------------------------------------------------
// Circlef Constructors
//-----------------------------------------------------------------
Circlef::Circlef( )
:Circlef{ 0.0f, 0.0f, 0.0f }
{
Circlef::Circlef()
: Circlef { 0.0f, 0.0f, 0.0f } {
}
Circlef::Circlef( float centerX, float centerY, float radius )
:Circlef{ Point2f{ centerX, centerY }, radius }
{
Circlef::Circlef(float centerX, float centerY, float radius)
: Circlef { Point2f { centerX, centerY }, radius } {
}
Circlef::Circlef( const Point2f& center, float radius )
:center{ center }
,radius{ radius }
{
Circlef::Circlef(const Point2f& center, float radius)
: center { center }
, radius { radius } {
}
//-----------------------------------------------------------------
// Ellipsef Constructors
//-----------------------------------------------------------------
Ellipsef::Ellipsef( )
:Ellipsef{ 0.0f, 0.0f, 0.0f, 0.0f }
{
Ellipsef::Ellipsef()
: Ellipsef { 0.0f, 0.0f, 0.0f, 0.0f } {
}
Ellipsef::Ellipsef( const Point2f& center, float radiusX, float radiusY )
: center{ center }
, radiusX{ radiusX }
, radiusY{ radiusY }
{
Ellipsef::Ellipsef(const Point2f& center, float radiusX, float radiusY)
: center { center }
, radiusX { radiusX }
, radiusY { radiusY } {
}
Ellipsef::Ellipsef( float centerX, float centerY, float radiusX, float radiusY )
: Ellipsef{ Point2f{ centerX, centerY }, radiusX, radiusY }
{
Ellipsef::Ellipsef(float centerX, float centerY, float radiusX, float radiusY)
: Ellipsef { Point2f { centerX, centerY }, radiusX, radiusY } {
}