3#include <Optibits/Bitmap.hpp>
4#include <Optibits/Graphics.hpp>
5#include <Optibits/Platform.hpp>
18 class RenderStateManager;
37 typedef std::list<Transform> Transforms;
38 typedef std::list<DrawQueue> DrawOpQueueStack;
49 bool ispToTheleftOfab(T xa, T ya, T xb, T yb, T xp, T yp)
51 return (xb - xa) * (yp - ya) - (xp - xa) * (yb - ya) > 0;
54 template<
typename T,
typename C>
55 void normalizeCoordinates(T& x1, T& y1, T& x2, T& y2, T& x3, T& y3, C& c3, T& x4, T& y4, C& c4)
57 if (ispToTheleftOfab(x1, y1, x2, y2, x3, y3) ==
58 ispToTheleftOfab(x2, y2, x3, y3, x4, y4)) {
66 void scheduleDrawOp(
const DrawOp& op);
70 inline std::string escapeMarkup(
const std::string& text) {
72 for (std::string::size_type pos = 0; pos < markup.length(); ++pos) {
73 if (markup[pos] ==
'&') {
74 markup.replace(pos, 1,
"&");
76 else if (markup[pos] ==
'<') {
77 markup.replace(pos, 1,
"<");
Definition GraphicsImpl.hpp:42