summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/render.h
diff options
context:
space:
mode:
author ImJezze <jezze@gmx.net>2016-03-12 16:03:28 +0100
committer ImJezze <jezze@gmx.net>2016-03-12 16:03:28 +0100
commit7add54760210313651c8a53a9ff6676512ce3fc8 (patch)
treee4e58b88feac19928cbb40479c9b799caead065c /src/emu/render.h
parenta026a582f1a0ea8c1ede3acaddacef506ef3f3b0 (diff)
Refactoring of render targes and vector texture coordinates
- implemented proper texture coordinates for vector quad primitive - vector screen is now processed in texture coordinates - revered workaround for raster screen, which is again processed in texture coordinates - known issue: cocktail mode for vector screen looks wrong
Diffstat (limited to 'src/emu/render.h')
-rw-r--r--src/emu/render.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/emu/render.h b/src/emu/render.h
index 6d55c75ada9..09fe68282ef 100644
--- a/src/emu/render.h
+++ b/src/emu/render.h
@@ -329,6 +329,8 @@ public:
// getters
render_primitive *next() const { return m_next; }
bool packable(const INT32 pack_size) const { return (flags & PRIMFLAG_PACKABLE) && texture.base != nullptr && texture.width <= pack_size && texture.height <= pack_size; }
+ float get_quad_width() const { return bounds.x1 - bounds.x0; }
+ float get_quad_height() const { return bounds.y1 - bounds.y0; }
// reset to prepare for re-use
void reset();