PERRY v1.0.0
P-E-R-R-Y/PERRY helps creating games with a bunch of tools.
Loading...
Searching...
No Matches

Topics

 extra
 

Classes

class  SfmlEvent
 
class  SfmlKeyboard
 
class  SfmlMouse
 
class  SfmlModel
 Sfml Model class. More...
 
class  SfmlPolygon
 allow use to draw polygons More...
 
class  SfmlSprite
 Used to handle images. More...
 
class  Quaternion
 quaternion are four-dimensional vector that can be used to represent rotations in 3D space. More...
 
class  SfmlCamera
 
class  SfmlWindow
 define sfml window More...
 

Functions

 SfmlKeyboard::SfmlKeyboard (graphic::IEvent *event)
 
std::vector< KeysSfmlKeyboard::whichKey () const override
 Be careful, this function will check every key of the keyboard and return an array of keys that are pressed it's not recommended to use this function in a loop, use isKeyPressed() instead. it's efficient for key detection & binding.
 
bool SfmlKeyboard::isKeyPressed (Keys key) const override
 Check if the key is pressed.
 
bool SfmlKeyboard::isKeyDown (Keys key) const override
 Check if the key is down.
 
bool SfmlKeyboard::isKeyReleased (Keys key) const override
 Check if the key is released.
 
bool SfmlKeyboard::isKeyUp (Keys key) const override
 Check if the key is up.
 
void SfmlKeyboard::update () override
 Update the keyboard.
 
 SfmlMouse::SfmlMouse (graphic::IEvent *event)
 
bool SfmlMouse::isButtonPressed (Buttons key) const override
 notice if a button is pressed
 
bool SfmlMouse::isButtonDown (Buttons key) const override
 notice if a button is down
 
bool SfmlMouse::isButtonReleased (Buttons key) const override
 notice if a button is released
 
bool SfmlMouse::isButtonUp (Buttons key) const override
 notice if a button is up
 
__v2f_t SfmlMouse::getPosition () const override
 get the position of the mouse
 
void SfmlMouse::setPosition (__v2f_t position) override
 set the position of the mouse
 
float SfmlMouse::GetMouseWheelMove () const override
 get the mouse wheel move
 
void SfmlMouse::update () override
 set the mouse wheel move
 
 SfmlModel::SfmlModel ()
 Construct a new Sfml Model object.
 
 SfmlModel::~SfmlModel ()
 Destroy the Sfml Model object.
 
__v3f_t SfmlModel::getPosition () const override
 Get the Position object.
 
void SfmlModel::setPosition (__v3f_t pos) override
 Set the Position object.
 
std::vector< sf::Vector3f > SfmlModel::getVertices ()
 Get the Vertices object.
 
void SfmlModel::rotate (sf::Vector3f angle, sf::Vector3f center={0, 0, 0})
 rotate will rotate the model
 
 SfmlPolygon::SfmlPolygon (std::vector< __v2f_t > points)
 Construct a new Sfml Polygon object.
 
 SfmlPolygon::~SfmlPolygon ()
 Destroy the Sfml Polygon object.
 
bool SfmlPolygon::isReady () const override
 check if the polygon is ready
 
__v2f_t SfmlPolygon::getPosition () const override
 Get the Position object.
 
void SfmlPolygon::setPosition (__v2f_t position) override
 Set the Position object.
 
__color_t SfmlPolygon::getColor () const override
 Get the Color object.
 
void SfmlPolygon::setColor (__color_t color) override
 Set the Color object.
 
std::vector< __v2f_t > SfmlPolygon::getPoints () const override
 Get the Points object.
 
 SfmlSprite::SfmlSprite (std::string path)
 Construct a new Sfml Sprite object.
 
bool SfmlSprite::isReady () const override
 check if the sprite is ready
 
__v4f_t SfmlSprite::getBounds () const override
 Get the Bounds object.
 
void SfmlSprite::setCrop (__v4f_t rect) override
 Set the Crop object.
 
__v2f_t SfmlSprite::getPosition () const override
 Get the Position object.
 
void SfmlSprite::setPosition (__v2f_t position) override
 Set the Position object.
 
float SfmlSprite::getRotation () const override
 Get the Rotation object.
 
void SfmlSprite::setRotation (float angle, bool isRad=false) override
 Set the Rotation object.
 
__v2f_t SfmlSprite::getSize () const override
 Get the Size object.
 
void SfmlSprite::setSize (__v2f_t size) override
 Set the Size object.
 
graphic::IWindowcreateWindow (__int32_t screenWidth, __int32_t screenHeight, std::string title)
 create Sfml window
 
void deleteWindow (graphic::IWindow *window)
 destroy Sfml window
 
graphic::ICameracreateCamera (__v3f_t position)
 create Sfml camera
 
void deleteCamera (graphic::ICamera *camera)
 destroy Sfml camera
 
graphic::IEventcreateEvent ()
 create Sfml event
 
void deleteEvent (graphic::IEvent *event)
 destroy Sfml event
 
graphic::IKeyboardcreateKeyboard (graphic::IEvent *event)
 create Sfml keyboard
 
void deleteKeyboard (graphic::IKeyboard *keyboard)
 destroy Sfml keyboard
 
graphic::IMousecreateMouse (graphic::IEvent *event)
 create Sfml mouse
 
void deleteMouse (graphic::IMouse *mouse)
 destroy Sfml mouse
 
graphic::IPolygoncreatePolygon (std::vector< __v2f_t > points)
 create Sfml polygon
 
void deletePolygon (graphic::IPolygon *polygon)
 destroy Sfml polygon
 
graphic::ISpritecreateSprite (std::string sprite)
 create Sfml sprite
 
void deleteSprite (graphic::ISprite *sprite)
 destroy Sfml sprite
 
graphic::IModelcreateModel ()
 create Sfml model
 
void deleteModel (graphic::IModel *model)
 destroy Sfml model
 
const char * getName ()
 get the name of the library
 
const char * getType ()
 get the type of the library
 
 Quaternion::Quaternion ()
 Construct a new Quaternion object.
 
 Quaternion::Quaternion (float w, float x, float y, float z)
 Construct a new Quaternion object.
 
 Quaternion::~Quaternion ()
 Destroy the Quaternion object.
 
static Quaternion Quaternion::identity ()
 return the identity quaternion
 
static Quaternion Quaternion::fromEulerAngles (float x, float y, float z)
 fromEulerAngles will create a quaternion from euler angles
 
static Quaternion Quaternion::fromAxisAngle (float angle, sf::Vector3f axis)
 fromAxisAngle will create a quaternion from an axis and an angle
 
static Quaternion Quaternion::fromVectors (const sf::Vector3f &v1, const sf::Vector3f &v2)
 quaterninon representing the rotation from one vector to another
 
Quaternion Quaternion::conjugate () const
 conjugate will return the conjugate of the quaternion
 
void Quaternion::normalize ()
 normalize will normalize the quaternion
 
void Quaternion::enforceSign ()
 enforceSign will enforce the sign of the quaternion
 
sf::Vector3f Quaternion::rotate (sf::Vector3f point, sf::Vector3f center={0, 0, 0}) const
 rotate will rotate a point around a center
 
Quaternion Quaternion::operator* (const Quaternion &other) const
 operator* will multiply two quaternions
 
 SfmlCamera::SfmlCamera (sf::Vector3f pos={0.f, 0.0f, 0.0f}, sf::Vector3f target={0, 0, -1}, float fov=90)
 Construct a new Sfml Camera object.
 
 SfmlCamera::~SfmlCamera ()
 Destroy the Sfml Camera object.
 
float SfmlCamera::getFov () const override
 Get the Fov object.
 
void SfmlCamera::setFov (float fov) override
 Set the Fov object.
 
ICamera::Mode SfmlCamera::getMode () const override
 Get the Mode object.
 
void SfmlCamera::setMode (ICamera::Mode mode) override
 Set the Mode object.
 
__v3f_t SfmlCamera::getPosition () const override
 Get the Position object.
 
void SfmlCamera::setPosition (__v3f_t position) override
 Set the Position object.
 
ICamera::Projection SfmlCamera::getProjection () const override
 Get the Projection object.
 
void SfmlCamera::setProjection (ICamera::Projection projection) override
 Set the Projection object.
 
__v3f_t SfmlCamera::getTarget () const override
 Get the Target object.
 
void SfmlCamera::setTarget (__v3f_t target) override
 Set the Target object.
 
__v3f_t SfmlCamera::getUp () const override
 Get the Up object.
 
void SfmlCamera::setUp (__v3f_t up) override
 Set the Up object.
 
template<typename T>
Matrice< T > perspectiveProjection (T fov, T aspectRatio)
 perspectiveProjection will create a perspective projection matrix
 
template<typename T>
Matrice< T > orthographicProjection (T left, T right, T bottom, T top, T nearPlane, T farPlane)
 orthographicProjection will create an orthographic projection matrix
 
std::array< double, 3 > v3toa3 (sf::Vector3f point)
 SFML.
 
 SfmlWindow::SfmlWindow (__int32_t screenWidth, __int32_t screenHeight, std::string title)
 Construct a new Sfml Window object.
 
 SfmlWindow::~SfmlWindow ()=default
 Destroy the Sfml Window object.
 
void SfmlWindow::linkEvent (graphic::IEvent *event) override
 link an event to the window
 
bool SfmlWindow::isOpen () override
 notice if the window is open
 
void SfmlWindow::close () override
 close the window
 
void SfmlWindow::setFrameLimit (__int32_t limit) override
 Set the Frame Limit object.
 
__int32_t SfmlWindow::getDelta () override
 Get the Delta object.
 
void SfmlWindow::beginDraw () override
 allowing to draw 2D on the window
 
virtual void SfmlWindow::drawPoly (graphic::IPolygon *polygon) override
 draw a polygon
 
virtual void SfmlWindow::drawSprite (graphic::ISprite *sprite) override
 draw a sprite
 
void SfmlWindow::endDraw () override
 end the drawing
 
void SfmlWindow::beginMode3 (graphic::ICamera *cam) override
 allowing to draw 3D on the window
 
void SfmlWindow::drawPoint (const sf::Vector3f &point)
 draw a point
 
void SfmlWindow::drawModel (graphic::IModel *model) override
 draw a model
 
void SfmlWindow::endMode3 () override
 end the 3D drawing
 
bool SfmlWindow::pollEvent () override
 poll the event
 
void SfmlWindow::eventClose () override
 close the window
 

Variables

sf::Event SfmlEvent::_event
 
const std::unordered_map< IKeyboard::Keys, sf::Keyboard::Key > SfmlKeyboard::_keys
 
SfmlEventSfmlMouse::_event
 
sf::Vector3f SfmlModel::position
 
Quaternion SfmlModel::rotation
 
std::vector< sf::Vector3f > SfmlModel::vertices
 
sf::Color SfmlPolygon::_color
 
sf::Vector2f SfmlPolygon::_position
 
std::vector< sf::Vertex > SfmlPolygon::_points
 
std::vector< graphic::triangle_tSfmlPolygon::_triangles
 
sf::Texture SfmlSprite::_texture
 
sf::Sprite SfmlSprite::_sprite
 
sf::Vector2f SfmlSprite::_position
 
sf::Vector2f SfmlSprite::_scale
 
float Quaternion::w
 
float Quaternion::x
 
float Quaternion::y
 
float Quaternion::z
 
sf::Vector3f SfmlCamera::_position
 
sf::Vector3f SfmlCamera::_up
 
Quaternion SfmlCamera::_quaternion
 
Projection SfmlCamera::_projection
 
Mode SfmlCamera::_mode
 
float SfmlCamera::_fov
 
sf::RenderWindow SfmlWindow::_window
 
SfmlEventSfmlWindow::_event
 
SfmlCameraSfmlWindow::_camera
 
sf::Clock SfmlWindow::_deltaClock
 
sf::Time SfmlWindow::_deltaTime
 

Friends

class SfmlWindow
 
class SfmlKeyboard
 
class SfmlMouse
 
class SfmlWindow
 
class SfmlCamera
 
class SfmlWindow
 
class SfmlWindow
 
class SfmlWindow
 

Detailed Description

Function Documentation

◆ beginDraw()

void SfmlWindow::beginDraw ( )
inlineoverridevirtual

allowing to draw 2D on the window

Implements graphic::IWindow.

◆ beginMode3()

void SfmlWindow::beginMode3 ( graphic::ICamera * cam)
inlineoverridevirtual

allowing to draw 3D on the window

Parameters
cam

Implements graphic::IWindow.

◆ close()

void SfmlWindow::close ( )
inlineoverridevirtual

close the window

Implements graphic::IWindow.

◆ conjugate()

Quaternion Quaternion::conjugate ( ) const
inline

conjugate will return the conjugate of the quaternion

Returns
Quaternion

◆ drawModel()

void SfmlWindow::drawModel ( graphic::IModel * model)
inlineoverridevirtual

draw a model

Parameters
model

Implements graphic::IWindow.

◆ drawPoint()

void SfmlWindow::drawPoint ( const sf::Vector3f & point)
inline

draw a point

Parameters
point

make the camera the origin

rotate the object

perspective projection

homogeneous division// convert to normalized device coordinates

◆ drawPoly()

void SfmlWindow::drawPoly ( graphic::IPolygon * polygon)
overridevirtual

draw a polygon

Parameters
polygon

Implements graphic::IWindow.

◆ drawSprite()

void SfmlWindow::drawSprite ( graphic::ISprite * sprite)
overridevirtual

draw a sprite

Parameters
sprite

Implements graphic::IWindow.

◆ endDraw()

void SfmlWindow::endDraw ( )
inlineoverridevirtual

end the drawing

Implements graphic::IWindow.

◆ endMode3()

void SfmlWindow::endMode3 ( )
inlineoverridevirtual

end the 3D drawing

Implements graphic::IWindow.

◆ eventClose()

void SfmlWindow::eventClose ( )
inlineoverridevirtual

close the window

Implements graphic::IWindow.

◆ fromAxisAngle()

static Quaternion Quaternion::fromAxisAngle ( float angle,
sf::Vector3f axis )
inlinestatic

fromAxisAngle will create a quaternion from an axis and an angle

Parameters
angle
axis
Returns
Quaternion

◆ fromEulerAngles()

static Quaternion Quaternion::fromEulerAngles ( float x,
float y,
float z )
inlinestatic

fromEulerAngles will create a quaternion from euler angles

Parameters
x
y
z
Returns
Quaternion

◆ fromVectors()

static Quaternion Quaternion::fromVectors ( const sf::Vector3f & v1,
const sf::Vector3f & v2 )
inlinestatic

quaterninon representing the rotation from one vector to another

Parameters
v1
v2
Returns
Quaternion

◆ getBounds()

__v4f_t SfmlSprite::getBounds ( ) const
inlineoverridevirtual

Get the Bounds object.

Returns
__v4f_t

Implements graphic::ISprite.

◆ getColor()

__color_t SfmlPolygon::getColor ( ) const
inlineoverridevirtual

Get the Color object.

Returns
__color_t

Implements graphic::IPolygon.

◆ getDelta()

__int32_t SfmlWindow::getDelta ( )
inlineoverridevirtual

Get the Delta object.

Returns
__int32_t

Implements graphic::IWindow.

◆ getFov()

float SfmlCamera::getFov ( ) const
inlineoverridevirtual

Get the Fov object.

Returns
float

Implements graphic::ICamera.

◆ getMode()

ICamera::Mode SfmlCamera::getMode ( ) const
inlineoverridevirtual

Get the Mode object.

Returns
ICamera::Mode

Implements graphic::ICamera.

◆ GetMouseWheelMove()

float SfmlMouse::GetMouseWheelMove ( ) const
inlineoverridevirtual

get the mouse wheel move

Returns
float

Implements graphic::IMouse.

◆ getPoints()

std::vector< __v2f_t > SfmlPolygon::getPoints ( ) const
inlineoverridevirtual

Get the Points object.

Returns
std::vector<__v2f_t>

Implements graphic::IPolygon.

◆ getPosition() [1/5]

__v3f_t SfmlCamera::getPosition ( ) const
inlineoverridevirtual

Get the Position object.

Returns
__v3f_t

Implements graphic::ICamera.

◆ getPosition() [2/5]

__v3f_t SfmlModel::getPosition ( ) const
inlineoverridevirtual

Get the Position object.

Returns
__v3f_t

Implements graphic::IModel.

◆ getPosition() [3/5]

__v2f_t SfmlMouse::getPosition ( ) const
inlineoverridevirtual

get the position of the mouse

Returns
__v2f_t

Implements graphic::IMouse.

◆ getPosition() [4/5]

__v2f_t SfmlPolygon::getPosition ( ) const
inlineoverridevirtual

Get the Position object.

Returns
__v2f_t

Implements graphic::IPolygon.

◆ getPosition() [5/5]

__v2f_t SfmlSprite::getPosition ( ) const
inlineoverridevirtual

Get the Position object.

Returns
__v2f_t

Implements graphic::ISprite.

◆ getProjection()

ICamera::Projection SfmlCamera::getProjection ( ) const
inlineoverridevirtual

Get the Projection object.

Returns
ICamera::Projection

Implements graphic::ICamera.

◆ getRotation()

float SfmlSprite::getRotation ( ) const
inlineoverridevirtual

Get the Rotation object.

Returns
float

Implements graphic::ISprite.

◆ getSize()

__v2f_t SfmlSprite::getSize ( ) const
inlineoverridevirtual

Get the Size object.

Returns
__v2f_t

Implements graphic::ISprite.

◆ getTarget()

__v3f_t SfmlCamera::getTarget ( ) const
inlineoverridevirtual

Get the Target object.

Returns
__v3f_t

Implements graphic::ICamera.

◆ getUp()

__v3f_t SfmlCamera::getUp ( ) const
inlineoverridevirtual

Get the Up object.

Returns
__v3f_t

Implements graphic::ICamera.

◆ getVertices()

std::vector< sf::Vector3f > SfmlModel::getVertices ( )
inline

Get the Vertices object.

Returns
std::vector<sf::Vector3f>

◆ identity()

static Quaternion Quaternion::identity ( )
inlinestatic

return the identity quaternion

Returns
Quaternion

◆ isButtonDown()

bool SfmlMouse::isButtonDown ( Buttons key) const
inlineoverridevirtual

notice if a button is down

Parameters
key
Returns
true
false

Implements graphic::IMouse.

◆ isButtonPressed()

bool SfmlMouse::isButtonPressed ( Buttons key) const
inlineoverridevirtual

notice if a button is pressed

Parameters
key
Returns
true
false

Implements graphic::IMouse.

◆ isButtonReleased()

bool SfmlMouse::isButtonReleased ( Buttons key) const
inlineoverridevirtual

notice if a button is released

Parameters
key
Returns
true
false

Implements graphic::IMouse.

◆ isButtonUp()

bool SfmlMouse::isButtonUp ( Buttons key) const
inlineoverridevirtual

notice if a button is up

Parameters
key
Returns
true
false

Implements graphic::IMouse.

◆ isKeyDown()

bool SfmlKeyboard::isKeyDown ( Keys key) const
inlineoverridevirtual

Check if the key is down.

Parameters
key
Returns
bool

Implements graphic::IKeyboard.

◆ isKeyPressed()

bool SfmlKeyboard::isKeyPressed ( Keys key) const
inlineoverridevirtual

Check if the key is pressed.

Parameters
key
Returns
bool

Implements graphic::IKeyboard.

◆ isKeyReleased()

bool SfmlKeyboard::isKeyReleased ( Keys key) const
inlineoverridevirtual

Check if the key is released.

Parameters
key
Returns
bool

Implements graphic::IKeyboard.

◆ isKeyUp()

bool SfmlKeyboard::isKeyUp ( Keys key) const
inlineoverridevirtual

Check if the key is up.

Parameters
key
Returns
bool

Implements graphic::IKeyboard.

◆ isOpen()

bool SfmlWindow::isOpen ( )
inlineoverridevirtual

notice if the window is open

Returns
true
false

Implements graphic::IWindow.

◆ isReady() [1/2]

bool SfmlPolygon::isReady ( ) const
inlineoverridevirtual

check if the polygon is ready

Returns
true
false

Implements graphic::IPolygon.

◆ isReady() [2/2]

bool SfmlSprite::isReady ( ) const
inlineoverridevirtual

check if the sprite is ready

Returns
true
false

Implements graphic::ISprite.

◆ linkEvent()

void SfmlWindow::linkEvent ( graphic::IEvent * event)
inlineoverridevirtual

link an event to the window

Parameters
event

Implements graphic::IWindow.

◆ operator*()

Quaternion Quaternion::operator* ( const Quaternion & other) const
inline

operator* will multiply two quaternions

Parameters
other
Returns
Quaternion

◆ orthographicProjection()

template<typename T>
Matrice< T > orthographicProjection ( T left,
T right,
T bottom,
T top,
T nearPlane,
T farPlane )

orthographicProjection will create an orthographic projection matrix

Template Parameters
T
Parameters
left
right
bottom
top
nearPlane
farPlane
Returns
Matrice<T>

◆ perspectiveProjection()

template<typename T>
Matrice< T > perspectiveProjection ( T fov,
T aspectRatio )

perspectiveProjection will create a perspective projection matrix

Template Parameters
T
Parameters
fov
aspectRatio
Returns
Matrice<T>

◆ pollEvent()

bool SfmlWindow::pollEvent ( )
inlineoverridevirtual

poll the event

Returns
true
false

Implements graphic::IWindow.

◆ Quaternion()

Quaternion::Quaternion ( float w,
float x,
float y,
float z )
inline

Construct a new Quaternion object.

Parameters
w
x
y
z

◆ rotate() [1/2]

sf::Vector3f Quaternion::rotate ( sf::Vector3f point,
sf::Vector3f center = {0, 0, 0} ) const
inline

rotate will rotate a point around a center

Parameters
point
center
Returns
sf::Vector3f

◆ rotate() [2/2]

void SfmlModel::rotate ( sf::Vector3f angle,
sf::Vector3f center = {0, 0, 0} )
inlineprotected

rotate will rotate the model

Parameters
angle
center

◆ setColor()

void SfmlPolygon::setColor ( __color_t color)
inlineoverride

Set the Color object.

Parameters
color

◆ setCrop()

void SfmlSprite::setCrop ( __v4f_t rect)
inlineoverridevirtual

Set the Crop object.

Parameters
rect

Implements graphic::ISprite.

◆ setFov()

void SfmlCamera::setFov ( float fov)
inlineoverridevirtual

Set the Fov object.

Parameters
fov

Implements graphic::ICamera.

◆ setFrameLimit()

void SfmlWindow::setFrameLimit ( __int32_t limit)
inlineoverridevirtual

Set the Frame Limit object.

Parameters
limit

Implements graphic::IWindow.

◆ setMode()

void SfmlCamera::setMode ( ICamera::Mode mode)
inlineoverride

Set the Mode object.

Parameters
mode

◆ setPosition() [1/5]

void SfmlCamera::setPosition ( __v3f_t position)
inlineoverridevirtual

Set the Position object.

Parameters
position

Implements graphic::ICamera.

◆ setPosition() [2/5]

void SfmlModel::setPosition ( __v3f_t pos)
inlineoverride

Set the Position object.

Parameters
pos

◆ setPosition() [3/5]

void SfmlMouse::setPosition ( __v2f_t position)
inlineoverridevirtual

set the position of the mouse

Parameters
position

Implements graphic::IMouse.

◆ setPosition() [4/5]

void SfmlPolygon::setPosition ( __v2f_t position)
inlineoverride

Set the Position object.

Parameters
position

◆ setPosition() [5/5]

void SfmlSprite::setPosition ( __v2f_t position)
inlineoverridevirtual

Set the Position object.

Parameters
position

Implements graphic::ISprite.

◆ setProjection()

void SfmlCamera::setProjection ( ICamera::Projection projection)
inlineoverride

Set the Projection object.

Parameters
projection

◆ setRotation()

void SfmlSprite::setRotation ( float angle,
bool isRad = false )
inlineoverridevirtual

Set the Rotation object.

Parameters
angle
isRad

Implements graphic::ISprite.

◆ setSize()

void SfmlSprite::setSize ( __v2f_t size)
inlineoverridevirtual

Set the Size object.

Parameters
size

Implements graphic::ISprite.

◆ setTarget()

void SfmlCamera::setTarget ( __v3f_t target)
inlineoverridevirtual

Set the Target object.

Parameters
target

Implements graphic::ICamera.

◆ setUp()

void SfmlCamera::setUp ( __v3f_t up)
inlineoverridevirtual

Set the Up object.

Parameters
up

Implements graphic::ICamera.

◆ SfmlCamera()

SfmlCamera::SfmlCamera ( sf::Vector3f pos = {0.f, 0.0f, 0.0f},
sf::Vector3f target = {0, 0, -1},
float fov = 90 )
inline

Construct a new Sfml Camera object.

Parameters
pos
target
fov

◆ SfmlPolygon()

SfmlPolygon::SfmlPolygon ( std::vector< __v2f_t > points)
inline

Construct a new Sfml Polygon object.

Parameters
points

◆ SfmlSprite()

SfmlSprite::SfmlSprite ( std::string path)
inline

Construct a new Sfml Sprite object.

Parameters
path

◆ SfmlWindow()

SfmlWindow::SfmlWindow ( __int32_t screenWidth,
__int32_t screenHeight,
std::string title )
inline

Construct a new Sfml Window object.

Parameters
screenWidth
screenHeight
title

◆ update() [1/2]

void SfmlKeyboard::update ( )
inlineoverridevirtual

Update the keyboard.

Implements graphic::IKeyboard.

◆ update() [2/2]

void SfmlMouse::update ( )
inlineoverridevirtual

set the mouse wheel move

Parameters
move

Implements graphic::IMouse.

◆ v3toa3()

std::array< double, 3 > v3toa3 ( sf::Vector3f point)

SFML.

Interface Abstract

turns a sf::Vector3f into a std::array<double, 3>

Parameters
point
Returns
std::array<double, 3>

◆ whichKey()

std::vector< Keys > SfmlKeyboard::whichKey ( ) const
inlineoverridevirtual

Be careful, this function will check every key of the keyboard and return an array of keys that are pressed it's not recommended to use this function in a loop, use isKeyPressed() instead. it's efficient for key detection & binding.

Returns
Keys*

Implements graphic::IKeyboard.