|
|
| SfmlKeyboard::SfmlKeyboard (graphic::IEvent *event) |
| |
| std::vector< Keys > | SfmlKeyboard::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::IWindow * | createWindow (__int32_t screenWidth, __int32_t screenHeight, std::string title) |
| | create Sfml window
|
| |
|
void | deleteWindow (graphic::IWindow *window) |
| | destroy Sfml window
|
| |
|
graphic::ICamera * | createCamera (__v3f_t position) |
| | create Sfml camera
|
| |
|
void | deleteCamera (graphic::ICamera *camera) |
| | destroy Sfml camera
|
| |
|
graphic::IEvent * | createEvent () |
| | create Sfml event
|
| |
|
void | deleteEvent (graphic::IEvent *event) |
| | destroy Sfml event
|
| |
|
graphic::IKeyboard * | createKeyboard (graphic::IEvent *event) |
| | create Sfml keyboard
|
| |
|
void | deleteKeyboard (graphic::IKeyboard *keyboard) |
| | destroy Sfml keyboard
|
| |
|
graphic::IMouse * | createMouse (graphic::IEvent *event) |
| | create Sfml mouse
|
| |
|
void | deleteMouse (graphic::IMouse *mouse) |
| | destroy Sfml mouse
|
| |
|
graphic::IPolygon * | createPolygon (std::vector< __v2f_t > points) |
| | create Sfml polygon
|
| |
|
void | deletePolygon (graphic::IPolygon *polygon) |
| | destroy Sfml polygon
|
| |
|
graphic::ISprite * | createSprite (std::string sprite) |
| | create Sfml sprite
|
| |
|
void | deleteSprite (graphic::ISprite *sprite) |
| | destroy Sfml sprite
|
| |
|
graphic::IModel * | createModel () |
| | 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
|
| |