25 #ifndef __I6ENGINE_API_GRAPHICSFACADE_H__
26 #define __I6ENGINE_API_GRAPHICSFACADE_H__
34 #include "boost/function.hpp"
48 void closeViewports();
53 void setAmbientLight(
double r,
double g,
double b);
58 void setSkyBox(
const std::string & material,
double distance = 5000.0,
bool renderFirst =
true);
59 void setSkyDome(
const std::string & material, int32_t curvature = 10,
double tiles = 8.0,
double distance = 4000.0,
bool renderFirst =
true);
60 void setSkyPlane(
const std::string & material,
double distance, int32_t direction, int32_t size = 1000,
double tiles = 10.0,
bool renderFirst =
true,
double curvature = 0.0, int32_t xSegments = 1, int32_t ySegments = 1);
64 void removeSkyPlane();
74 void setFullscreen(
bool fullscreen);
84 void registerNotifyCallback(
const boost::function<
void(int64_t)> & f);
89 void notifyNewID(int64_t
id);
94 void resetSubSystem();
100 _resolutions = resolutions;
114 return _currentResolution;
121 std::lock_guard<std::mutex> lg(_selectablesLock);
122 _selectables = selectables;
129 std::lock_guard<std::mutex> lg(_selectablesLock);
139 void setLinearFog(
const Vec3 & colour,
double start,
double end)
const;
146 void setExponentialFog(
const Vec3 & colour,
double density)
const;
153 void setExponentialFog2(
const Vec3 & colour,
double density)
const;
160 void takeScreenshot(
const std::string & prefix,
const std::string & suffix)
const;
171 void showFPS(
double x,
double y,
const std::string & imageStyle,
const std::string & printStyle,
const std::string & imageset,
const std::string & image)
const;
176 void hideFPS()
const;
181 void getHighestCoordinate(
const Vec3 & startPos,
const std::function<
void(
Vec3)> & callback)
const;
184 boost::function<void(int64_t)> _notify;
188 std::vector<graphics::Resolution> _resolutions;
192 mutable std::mutex _selectablesLock;
193 std::vector<std::pair<int64_t, Vec3>> _selectables;
void setPossibleResolutions(const std::vector< graphics::Resolution > &resolutions)
sets possible resolutions, called by graphics subsystem
#define ISIXE_MODULES_API
graphics::Resolution getCurrentResolution() const
returns current resolution
Implements 3-dimensional vectors.
std::vector< graphics::Resolution > getPossibleResolutions() const
returns all resolutions the graphics subsystem can show
void setSelectables(const std::vector< std::pair< int64_t, Vec3 >> selectables)
sets the selectables, only used by graphics
std::vector< std::pair< int64_t, Vec3 > > getSelectables() const
returns the selectables