neoGFX
Cross-platform C++ app/game engine
Loading...
Searching...
No Matches
neogfx::graphics_operation Namespace Reference

Classes

struct  clear
 
struct  clear_depth_buffer
 
struct  clear_gradient
 
struct  clear_stencil_buffer
 
struct  draw_arc
 
struct  draw_checker_rect
 
struct  draw_circle
 
struct  draw_cubic_bezier
 
struct  draw_ellipse
 
struct  draw_entities
 
struct  draw_glyphs
 
struct  draw_line
 
struct  draw_mesh
 
struct  draw_path
 
struct  draw_pie
 
struct  draw_pixel
 
struct  draw_rect
 
struct  draw_rounded_rect
 
struct  draw_shape
 
struct  draw_triangle
 
struct  line_stipple_off
 
struct  line_stipple_on
 
struct  pop_logical_operation
 
struct  push_logical_operation
 
struct  scissor_off
 
struct  scissor_on
 
struct  set_blending_mode
 
struct  set_gradient
 
struct  set_logical_coordinate_system
 
struct  set_logical_coordinates
 
struct  set_opacity
 
struct  set_origin
 
struct  set_pixel
 
struct  set_smoothing_mode
 
struct  set_viewport
 
struct  snap_to_pixel_off
 
struct  snap_to_pixel_on
 
struct  subpixel_rendering_off
 
struct  subpixel_rendering_on
 

Typedefs

typedef std::variant< std::monostate, set_logical_coordinate_system, set_logical_coordinates, set_origin, set_viewport, scissor_on, scissor_off, snap_to_pixel_on, snap_to_pixel_off, set_opacity, set_blending_mode, set_smoothing_mode, push_logical_operation, pop_logical_operation, line_stipple_on, line_stipple_off, subpixel_rendering_on, subpixel_rendering_off, clear, clear_depth_buffer, clear_stencil_buffer, clear_gradient, set_gradient, set_pixel, draw_pixel, draw_line, draw_triangle, draw_rect, draw_rounded_rect, draw_checker_rect, draw_circle, draw_ellipse, draw_pie, draw_arc, draw_cubic_bezier, draw_path, draw_shape, draw_entities, draw_glyphs, draw_meshoperation
 
typedef std::vector< operationqueue
 
typedef std::ranges::subrange< operation const * > batch
 

Enumerations

enum  operation_type {
  Invalid = 0 , SetLogicalCoordinateSystem , SetLogicalCoordinates , SetOrigin ,
  SetViewport , ScissorOn , ScissorOff , SnapToPixelOn ,
  SnapToPixelOff , SetOpacity , SetBlendingMode , SetSmoothingMode ,
  PushLogicalOperation , PopLogicalOperation , LineStippleOn , LineStippleOff ,
  SubpixelRenderingOn , SubpixelRenderingOff , Clear , ClearDepthBuffer ,
  ClearStencilBuffer , ClearGradient , SetGradient , SetPixel ,
  DrawPixel , DrawLine , DrawTriangle , DrawRect ,
  DrawRoundedRect , DrawCheckerRect , DrawCircle , DrawEllipse ,
  DrawPie , DrawArc , DrawCubicBezier , DrawPath ,
  DrawShape , DrawEntities , DrawGlyph , DrawMesh
}
 

Functions

std::string to_string (operation_type aOpType)
 
bool batchable (const operation &aLeft, const operation &aRight)
 
bool batchable (text_format const &aLeft, text_format const &aRight)
 
bool batchable (i_glyph_text const &lhsText, i_glyph_text const &rhsText, glyph_char const &lhs, glyph_char const &rhs)
 

Typedef Documentation

◆ batch

typedef std::ranges::subrange<operation const*> neogfx::graphics_operation::batch

Definition at line 372 of file graphics_operations.hpp.

◆ operation

◆ queue

Definition at line 371 of file graphics_operations.hpp.

Enumeration Type Documentation

◆ operation_type

Enumerator
Invalid 
SetLogicalCoordinateSystem 
SetLogicalCoordinates 
SetOrigin 
SetViewport 
ScissorOn 
ScissorOff 
SnapToPixelOn 
SnapToPixelOff 
SetOpacity 
SetBlendingMode 
SetSmoothingMode 
PushLogicalOperation 
PopLogicalOperation 
LineStippleOn 
LineStippleOff 
SubpixelRenderingOn 
SubpixelRenderingOff 
Clear 
ClearDepthBuffer 
ClearStencilBuffer 
ClearGradient 
SetGradient 
SetPixel 
DrawPixel 
DrawLine 
DrawTriangle 
DrawRect 
DrawRoundedRect 
DrawCheckerRect 
DrawCircle 
DrawEllipse 
DrawPie 
DrawArc 
DrawCubicBezier 
DrawPath 
DrawShape 
DrawEntities 
DrawGlyph 
DrawMesh 

Definition at line 321 of file graphics_operations.hpp.

Function Documentation

◆ batchable() [1/3]

bool neogfx::graphics_operation::batchable ( const operation aLeft,
const operation aRight 
)

◆ batchable() [2/3]

bool neogfx::graphics_operation::batchable ( i_glyph_text const &  lhsText,
i_glyph_text const &  rhsText,
glyph_char const &  lhs,
glyph_char const &  rhs 
)

◆ batchable() [3/3]

bool neogfx::graphics_operation::batchable ( text_format const &  aLeft,
text_format const &  aRight 
)

◆ to_string()

std::string neogfx::graphics_operation::to_string ( operation_type  aOpType)