JNGL
Easy to use cross-platform 2D game library
Loading...
Searching...
No Matches
positioning.hpp File Reference

Useful functions to position elements on the screen. More...

#include "Vec2.hpp"
Include dependency graph for positioning.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  jngl
 JNGL's main namespace.
 

Functions

template<class T >
void setRightEdge (T &obj, jngl::Vec2 position)
 Pass an object T that has methods setCenter(jngl::Vec2) and getWidth().
 

Detailed Description

Useful functions to position elements on the screen.

Definition in file positioning.hpp.