FastUIDraw
painter_draw_break_action.hpp
Go to the documentation of this file.
1 /*!
2  * \file painter_draw_break_action.hpp
3  * \brief file painter_draw_break_action.hpp
4  *
5  * Copyright 2019 by Intel.
6  *
7  * Contact: kevin.rogovin@gmail.com
8  *
9  * This Source Code Form is subject to the
10  * terms of the Mozilla Public License, v. 2.0.
11  * If a copy of the MPL was not distributed with
12  * this file, You can obtain one at
13  * http://mozilla.org/MPL/2.0/.
14  *
15  * \author Kevin Rogovin <kevin.rogovin@gmail.com>
16  *
17  */
18 
19 
20 #ifndef FASTUIDRAW_PAINTER_DRAW_BREAK_ACTION_HPP
21 #define FASTUIDRAW_PAINTER_DRAW_BREAK_ACTION_HPP
22 
25 
26 namespace fastuidraw
27 {
28 ///@cond
29 class PainterBackend;
30 ///@endcond
31 
32 /*!\addtogroup PainterBackend
33  * @{
34  */
35 
36  /*!\brief
37  * A \ref PainterDrawBreakAction represents an action on
38  * the 3D API between two indices to be fed the the GPU; a
39  * \ref PainterDrawBreakAction will imply an draw break in
40  * the underlying 3D API. Typical example of such an action
41  * would be to bind a texture.
42  */
44  public reference_counted<PainterDrawBreakAction>::concurrent
45  {
46  public:
47  /*!
48  * To be implemented by a derived class to execute the action
49  * and to return what portions of the GPU state are made dirty
50  * by the action.
51  * \param backend the \ref PainterBackend object from which this
52  * action is called as it issues 3D API commands.
53  */
54  virtual
56  execute(PainterBackend *backend) const = 0;
57  };
58 /*! @} */
59 }
60 
61 #endif
A PainterDrawBreakAction represents an action on the 3D API between two indices to be fed the the GPU...
all classes and functions of FastUIDraw are in the namespace fastuidraw.
Definition: colorstop.hpp:28
virtual gpu_dirty_state execute(PainterBackend *backend) const =0
file gpu_dirty_state.hpp
Defines default reference counting base classes.
A PainterBackend is an interface that defines the API-specific elements to implement Painter...
file reference_counted.hpp