> All members, including inherited
◆ boxShadow()
void OpenGLRenderer::boxShadow |
( |
glm::vec2 | position, |
|
|
glm::vec2 | size, |
|
|
float | blurRadius, |
|
|
const AColor & | color ) |
|
overridevirtual |
- Parameters
-
position | position |
size | rectangle size |
blurRadius | blur radius |
color | shadow color |
Implements IRenderer.
◆ boxShadowInner()
void OpenGLRenderer::boxShadowInner |
( |
glm::vec2 | position, |
|
|
glm::vec2 | size, |
|
|
float | blurRadius, |
|
|
float | spreadRadius, |
|
|
float | borderRadius, |
|
|
const AColor & | color, |
|
|
glm::vec2 | offset ) |
|
overridevirtual |
- Parameters
-
position | position |
size | rectangle size |
blurRadius | blur radius |
spreadRadius | spread (offset) radius |
borderRadius | border radius of the rectangle. |
color | shadow color |
offset | shadow offset. Unlike outer shadow (ctx.render.boxShadow), the offset is passed to the shader instead of a simple rectangle position offset. |
Implements IRenderer.
◆ createNewTexture()
_unique< ITexture > OpenGLRenderer::createNewTexture |
( |
| ) |
|
|
overrideprotectedvirtual |
◆ getProjectionMatrix()
glm::mat4 OpenGLRenderer::getProjectionMatrix |
( |
| ) |
const |
|
overridevirtual |
◆ lines() [1/2]
- Parameters
-
brush | brush |
points | polyline points |
style | style |
width | line width |
Implements IRenderer.
◆ lines() [2/2]
void OpenGLRenderer::lines |
( |
const ABrush & | brush, |
|
|
AArrayView< std::pair< glm::vec2, glm::vec2 > > | points, |
|
|
const ABorderStyle & | style, |
|
|
AMetric | width ) |
|
overridevirtual |
- Parameters
-
brush | brush |
points | line points |
style | style |
width | line width |
Implements IRenderer.
◆ newMultiStringCanvas()
- Returns
- a new instance of
IMultiStringCanvas
Implements IRenderer.
◆ newRenderViewToTexture()
- Returns
- A new instance. Can return null if unsupported.
Implements IRenderer.
◆ points()
void OpenGLRenderer::points |
( |
const ABrush & | brush, |
|
|
AArrayView< glm::vec2 > | points, |
|
|
AMetric | size ) |
|
overridevirtual |
- Parameters
-
brush | brush |
points | points |
size | point size |
Implements IRenderer.
◆ popMaskAfter()
void OpenGLRenderer::popMaskAfter |
( |
| ) |
|
|
overridevirtual |
Stencil buffer should not be changed after calling this function. Should be called after the popMaskBefore
function.
Implements IRenderer.
◆ popMaskBefore()
void OpenGLRenderer::popMaskBefore |
( |
| ) |
|
|
overridevirtual |
Stencil pixel is decreased by each affected pixel. Should be called before the popMaskAfter
function.
Implements IRenderer.
◆ prerenderString()
- Parameters
-
position | string's top left point |
text | string to prerender |
fs | font style |
- Returns
- an instance of IPrerenderedString
Implements IRenderer.
◆ pushMaskAfter()
void OpenGLRenderer::pushMaskAfter |
( |
| ) |
|
|
overridevirtual |
Stencil buffer should not be changed after calling this function. Should be called after the pushMaskBefore
function.
Implements IRenderer.
◆ pushMaskBefore()
void OpenGLRenderer::pushMaskBefore |
( |
| ) |
|
|
overridevirtual |
Stencil pixel is increased by each affected pixel. Should be called before the pushMaskAfter
function.
Implements IRenderer.
◆ rectangle()
void OpenGLRenderer::rectangle |
( |
const ABrush & | brush, |
|
|
glm::vec2 | position, |
|
|
glm::vec2 | size ) |
|
overridevirtual |
- Parameters
-
brush | brush to use |
position | rectangle position (px) |
size | rectangle size (px) |
Implements IRenderer.
◆ rectangleBorder()
void OpenGLRenderer::rectangleBorder |
( |
const ABrush & | brush, |
|
|
glm::vec2 | position, |
|
|
glm::vec2 | size, |
|
|
float | lineWidth ) |
|
overridevirtual |
- Parameters
-
brush | brush to use |
position | rectangle position (px) |
size | rectangle size (px) |
lineWidth | border line width (px) |
Implements IRenderer.
◆ roundedRectangle()
void OpenGLRenderer::roundedRectangle |
( |
const ABrush & | brush, |
|
|
glm::vec2 | position, |
|
|
glm::vec2 | size, |
|
|
float | radius ) |
|
overridevirtual |
- Parameters
-
brush | brush to use |
position | rectangle position (px) |
size | rectangle size (px) |
radius | corner radius (px) |
Implements IRenderer.
◆ roundedRectangleBorder()
void OpenGLRenderer::roundedRectangleBorder |
( |
const ABrush & | brush, |
|
|
glm::vec2 | position, |
|
|
glm::vec2 | size, |
|
|
float | radius, |
|
|
int | borderWidth ) |
|
overridevirtual |
- Parameters
-
brush | brush to use |
position | rectangle position (px) |
size | rectangle size (px) |
radius | corner radius (px) |
borderWidth | border line width (px) |
Implements IRenderer.
◆ setBlending()
void OpenGLRenderer::setBlending |
( |
Blending | blending | ) |
|
|
overridevirtual |
- Parameters
-
blending | new blending mode |
Implements IRenderer.
◆ squareSector()
void OpenGLRenderer::squareSector |
( |
const ABrush & | brush, |
|
|
const glm::vec2 & | position, |
|
|
const glm::vec2 & | size, |
|
|
AAngleRadians | begin, |
|
|
AAngleRadians | end ) |
|
overridevirtual |
- Parameters
-
brush | brush to use |
position | rectangle position (px) |
size | rectangle size (px) |
begin | begin angle of the sector |
end | end angle of the sector |
The method can be used as mask to ctx.render.roundedRect, creating arc shape.
Implements IRenderer.
◆ string()
void OpenGLRenderer::string |
( |
glm::vec2 | position, |
|
|
const AString & | string, |
|
|
const AFontStyle & | fs ) |
|
overridevirtual |
- Parameters
-
position | string's top left point |
string | string to render |
fs | font style (optional) |
- Note
- This function is dramatically inefficient since it does symbol lookup for every character is the
string
and does GPU buffer allocations. If you want to render the same string for several times (frames), consider using the IRenderer::prerenderString function or high level views (such as ALabel) instead.
Implements IRenderer.