aboutsummaryrefslogtreecommitdiffstats
path: root/spritebatch_8hpp_source.html
blob: d30e15f7da57eecaa017520abe32e4c420633b24 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>YAGE: include/YAGE/spritebatch.hpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">YAGE
   &#160;<span id="projectnumber">0.02</span>
   </div>
   <div id="projectbrief">Yet Another Game Engine</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('spritebatch_8hpp_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">spritebatch.hpp</div>  </div>
</div><!--header-->
<div class="contents">
<a href="spritebatch_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/* ----------------------------------------------------------------------------</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * spritebatch.hpp</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> * Copyright (c) 2017 Yann Herklotz Grave &lt;ymherklotz@gmail.com&gt; -- MIT License</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> * See file LICENSE for more details</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> * ----------------------------------------------------------------------------</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> */</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;</div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="preprocessor">#ifndef YAGE_SPRITE_BATCH_HPP</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="preprocessor">#define YAGE_SPRITE_BATCH_HPP</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;</div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="vertex_8hpp.html">vertex.hpp</a>&quot;</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;</div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="preprocessor">#include &lt;GL/glew.h&gt;</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="preprocessor">#include &lt;glm/glm.hpp&gt;</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;</div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="preprocessor">#include &lt;vector&gt;</span></div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;</div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespaceyage.html">yage</a> {</div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;</div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="keyword">class </span>SpriteBatch;</div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;</div><div class="line"><a name="l00025"></a><span class="lineno"><a class="line" href="classyage_1_1Glyph.html">   25</a></span>&#160;<span class="keyword">class </span><a class="code" href="classyage_1_1Glyph.html">Glyph</a> {</div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="keyword">private</span>:</div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;    GLuint texture_;</div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;    <span class="keywordtype">float</span> depth_;</div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;    <a class="code" href="structyage_1_1Vertex.html">Vertex</a> top_left_;</div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;    <a class="code" href="structyage_1_1Vertex.html">Vertex</a> top_right_;</div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;    <a class="code" href="structyage_1_1Vertex.html">Vertex</a> bottom_right_;</div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;    <a class="code" href="structyage_1_1Vertex.html">Vertex</a> bottom_left_;</div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;</div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;    <a class="code" href="classyage_1_1Glyph.html#a19ae31e594b33bb1ad3bc1763cdba38f">Glyph</a>(GLuint <a class="code" href="classyage_1_1Glyph.html#af59de1a9642b07583d49197bc9d74747">texture</a>, <span class="keywordtype">float</span> <a class="code" href="classyage_1_1Glyph.html#ab1906273e09446d9f6ccdc0a06428afa">depth</a>, <span class="keyword">const</span> <a class="code" href="structyage_1_1Vertex.html">Vertex</a>&amp; <a class="code" href="classyage_1_1Glyph.html#a6a86e79419ccea7f6921685c197453a1">top_left</a>,</div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;          <span class="keyword">const</span> <a class="code" href="structyage_1_1Vertex.html">Vertex</a>&amp; <a class="code" href="classyage_1_1Glyph.html#aac14f7258926c0c06ec594bc616ed5d0">top_right</a>, <span class="keyword">const</span> <a class="code" href="structyage_1_1Vertex.html">Vertex</a>&amp; <a class="code" href="classyage_1_1Glyph.html#a3db3e9cd03629c6c37a597d5779d1024">bottom_right</a>,</div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;          <span class="keyword">const</span> <a class="code" href="structyage_1_1Vertex.html">Vertex</a>&amp; <a class="code" href="classyage_1_1Glyph.html#a8d8150986db3f0985f1b5d9622f83854">bottom_left</a>);</div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;</div><div class="line"><a name="l00039"></a><span class="lineno"><a class="line" href="classyage_1_1Glyph.html#af59de1a9642b07583d49197bc9d74747">   39</a></span>&#160;    GLuint <a class="code" href="classyage_1_1Glyph.html#af59de1a9642b07583d49197bc9d74747">texture</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> texture_; }</div><div class="line"><a name="l00040"></a><span class="lineno"><a class="line" href="classyage_1_1Glyph.html#ab1906273e09446d9f6ccdc0a06428afa">   40</a></span>&#160;    <span class="keywordtype">float</span> <a class="code" href="classyage_1_1Glyph.html#ab1906273e09446d9f6ccdc0a06428afa">depth</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> depth_; }</div><div class="line"><a name="l00041"></a><span class="lineno"><a class="line" href="classyage_1_1Glyph.html#a6a86e79419ccea7f6921685c197453a1">   41</a></span>&#160;    <a class="code" href="structyage_1_1Vertex.html">Vertex</a> <a class="code" href="classyage_1_1Glyph.html#a6a86e79419ccea7f6921685c197453a1">top_left</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> top_left_; }</div><div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="classyage_1_1Glyph.html#aac14f7258926c0c06ec594bc616ed5d0">   42</a></span>&#160;    <a class="code" href="structyage_1_1Vertex.html">Vertex</a> <a class="code" href="classyage_1_1Glyph.html#aac14f7258926c0c06ec594bc616ed5d0">top_right</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> top_right_; }</div><div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="classyage_1_1Glyph.html#a3db3e9cd03629c6c37a597d5779d1024">   43</a></span>&#160;    <a class="code" href="structyage_1_1Vertex.html">Vertex</a> <a class="code" href="classyage_1_1Glyph.html#a3db3e9cd03629c6c37a597d5779d1024">bottom_right</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> bottom_right_; }</div><div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="classyage_1_1Glyph.html#a8d8150986db3f0985f1b5d9622f83854">   44</a></span>&#160;    <a class="code" href="structyage_1_1Vertex.html">Vertex</a> <a class="code" href="classyage_1_1Glyph.html#a8d8150986db3f0985f1b5d9622f83854">bottom_left</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> bottom_left_; }</div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;};</div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;</div><div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="classyage_1_1RenderBatch.html">   47</a></span>&#160;<span class="keyword">class </span><a class="code" href="classyage_1_1RenderBatch.html">RenderBatch</a> {</div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;    <span class="keyword">friend</span> <a class="code" href="classyage_1_1SpriteBatch.html">SpriteBatch</a>;</div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;<span class="keyword">private</span>:</div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;    GLsizei num_vertices_;</div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;    GLint offset_;</div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;    GLuint texture_;</div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;</div><div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;    <a class="code" href="classyage_1_1RenderBatch.html">RenderBatch</a>(GLint offset, GLsizei num_vertices, GLuint <a class="code" href="classyage_1_1Glyph.html#af59de1a9642b07583d49197bc9d74747">texture</a>);</div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;</div><div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="classyage_1_1RenderBatch.html#a6bedb60b10b6d47b7b198d3cb53eea2a">   57</a></span>&#160;    GLint <a class="code" href="classyage_1_1RenderBatch.html#a6bedb60b10b6d47b7b198d3cb53eea2a">offset</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> offset_; }</div><div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="classyage_1_1RenderBatch.html#ad5edaded9e6257aa2f3a3b7cae276307">   58</a></span>&#160;    GLsizei <a class="code" href="classyage_1_1RenderBatch.html#ad5edaded9e6257aa2f3a3b7cae276307">num_vertices</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> num_vertices_; }</div><div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="classyage_1_1RenderBatch.html#a54102dde86a787d06d47928de8f72c3f">   59</a></span>&#160;    GLuint <a class="code" href="classyage_1_1RenderBatch.html#a54102dde86a787d06d47928de8f72c3f">texture</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> texture_; }</div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;};</div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;</div><div class="line"><a name="l00062"></a><span class="lineno"><a class="line" href="classyage_1_1SpriteBatch.html">   62</a></span>&#160;<span class="keyword">class </span><a class="code" href="classyage_1_1SpriteBatch.html">SpriteBatch</a> {</div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00064"></a><span class="lineno"><a class="line" href="classyage_1_1SpriteBatch.html#a6e01d11880a841b153e950aa8307b1a5">   64</a></span>&#160;    <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">int</span> NUM_VERTICES = 6;</div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;</div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;<span class="keyword">private</span>:</div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;    GLuint vbo_ = 0;</div><div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;    GLuint vao_ = 0;</div><div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;    std::vector&lt;Glyph&gt; glyphs_;</div><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;    std::vector&lt;Glyph*&gt; glyph_ptrs_;</div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;    std::vector&lt;RenderBatch&gt; render_batches_;</div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;</div><div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;    <a class="code" href="classyage_1_1SpriteBatch.html">SpriteBatch</a>();</div><div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;    <a class="code" href="classyage_1_1SpriteBatch.html">SpriteBatch</a>(<span class="keyword">const</span> <a class="code" href="classyage_1_1SpriteBatch.html">SpriteBatch</a>&amp;) = <span class="keyword">delete</span>;</div><div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;    <a class="code" href="classyage_1_1SpriteBatch.html">SpriteBatch</a>(<a class="code" href="classyage_1_1SpriteBatch.html">SpriteBatch</a>&amp;&amp;) = <span class="keyword">delete</span>;</div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;    ~<a class="code" href="classyage_1_1SpriteBatch.html">SpriteBatch</a>();</div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;</div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;    <a class="code" href="classyage_1_1SpriteBatch.html">SpriteBatch</a>&amp; operator=(<span class="keyword">const</span> <a class="code" href="classyage_1_1SpriteBatch.html">SpriteBatch</a>&amp;) = <span class="keyword">delete</span>;</div><div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;    <a class="code" href="classyage_1_1SpriteBatch.html">SpriteBatch</a>&amp; operator=(<a class="code" href="classyage_1_1SpriteBatch.html">SpriteBatch</a>&amp;&amp;) = <span class="keyword">delete</span>;</div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;</div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;    <span class="comment">// initialize vaos and vbos</span></div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="namespaceyage.html#a6aea783cb978923211e165efefec4a7b">init</a>();</div><div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;    <span class="keywordtype">void</span> begin();</div><div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;    <span class="keywordtype">void</span> end();</div><div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;    <span class="comment">// adds a sprite to the sprite batch to be rendered later</span></div><div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;    <span class="keywordtype">void</span> draw(<span class="keyword">const</span> glm::vec4&amp; destination_rect, <span class="keyword">const</span> glm::vec4&amp; uv_rect,</div><div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;              GLuint <a class="code" href="classyage_1_1Glyph.html#af59de1a9642b07583d49197bc9d74747">texture</a>, <span class="keyword">const</span> <a class="code" href="structyage_1_1Color.html">Color</a>&amp; color, <span class="keywordtype">float</span> <a class="code" href="classyage_1_1Glyph.html#ab1906273e09446d9f6ccdc0a06428afa">depth</a>);</div><div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;    <span class="comment">// render the batch</span></div><div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;    <span class="keywordtype">void</span> render();</div><div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;</div><div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;<span class="keyword">private</span>:</div><div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;    <span class="keywordtype">void</span> createVertexArray();</div><div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;    <span class="keywordtype">void</span> createRenderBatches();</div><div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;    <span class="keywordtype">void</span> sortGlyphs();</div><div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;};</div><div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;</div><div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;}  <span class="comment">// namespace yage</span></div><div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;</div><div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;<span class="preprocessor">#endif</span></div><div class="ttc" id="classyage_1_1RenderBatch_html"><div class="ttname"><a href="classyage_1_1RenderBatch.html">yage::RenderBatch</a></div><div class="ttdef"><b>Definition:</b> spritebatch.hpp:47</div></div>
<div class="ttc" id="namespaceyage_html_a6aea783cb978923211e165efefec4a7b"><div class="ttname"><a href="namespaceyage.html#a6aea783cb978923211e165efefec4a7b">yage::init</a></div><div class="ttdeci">bool init()</div><div class="ttdef"><b>Definition:</b> yage.hpp:30</div></div>
<div class="ttc" id="classyage_1_1Glyph_html_aac14f7258926c0c06ec594bc616ed5d0"><div class="ttname"><a href="classyage_1_1Glyph.html#aac14f7258926c0c06ec594bc616ed5d0">yage::Glyph::top_right</a></div><div class="ttdeci">Vertex top_right() const</div><div class="ttdef"><b>Definition:</b> spritebatch.hpp:42</div></div>
<div class="ttc" id="classyage_1_1Glyph_html_af59de1a9642b07583d49197bc9d74747"><div class="ttname"><a href="classyage_1_1Glyph.html#af59de1a9642b07583d49197bc9d74747">yage::Glyph::texture</a></div><div class="ttdeci">GLuint texture() const</div><div class="ttdef"><b>Definition:</b> spritebatch.hpp:39</div></div>
<div class="ttc" id="structyage_1_1Vertex_html"><div class="ttname"><a href="structyage_1_1Vertex.html">yage::Vertex</a></div><div class="ttdef"><b>Definition:</b> vertex.hpp:46</div></div>
<div class="ttc" id="classyage_1_1Glyph_html_ab1906273e09446d9f6ccdc0a06428afa"><div class="ttname"><a href="classyage_1_1Glyph.html#ab1906273e09446d9f6ccdc0a06428afa">yage::Glyph::depth</a></div><div class="ttdeci">float depth() const</div><div class="ttdef"><b>Definition:</b> spritebatch.hpp:40</div></div>
<div class="ttc" id="classyage_1_1SpriteBatch_html"><div class="ttname"><a href="classyage_1_1SpriteBatch.html">yage::SpriteBatch</a></div><div class="ttdef"><b>Definition:</b> spritebatch.hpp:62</div></div>
<div class="ttc" id="vertex_8hpp_html"><div class="ttname"><a href="vertex_8hpp.html">vertex.hpp</a></div></div>
<div class="ttc" id="classyage_1_1RenderBatch_html_a54102dde86a787d06d47928de8f72c3f"><div class="ttname"><a href="classyage_1_1RenderBatch.html#a54102dde86a787d06d47928de8f72c3f">yage::RenderBatch::texture</a></div><div class="ttdeci">GLuint texture() const</div><div class="ttdef"><b>Definition:</b> spritebatch.hpp:59</div></div>
<div class="ttc" id="classyage_1_1Glyph_html_a19ae31e594b33bb1ad3bc1763cdba38f"><div class="ttname"><a href="classyage_1_1Glyph.html#a19ae31e594b33bb1ad3bc1763cdba38f">yage::Glyph::Glyph</a></div><div class="ttdeci">Glyph(GLuint texture, float depth, const Vertex &amp;top_left, const Vertex &amp;top_right, const Vertex &amp;bottom_right, const Vertex &amp;bottom_left)</div><div class="ttdef"><b>Definition:</b> spritebatch.cpp:18</div></div>
<div class="ttc" id="classyage_1_1Glyph_html_a8d8150986db3f0985f1b5d9622f83854"><div class="ttname"><a href="classyage_1_1Glyph.html#a8d8150986db3f0985f1b5d9622f83854">yage::Glyph::bottom_left</a></div><div class="ttdeci">Vertex bottom_left() const</div><div class="ttdef"><b>Definition:</b> spritebatch.hpp:44</div></div>
<div class="ttc" id="classyage_1_1Glyph_html_a3db3e9cd03629c6c37a597d5779d1024"><div class="ttname"><a href="classyage_1_1Glyph.html#a3db3e9cd03629c6c37a597d5779d1024">yage::Glyph::bottom_right</a></div><div class="ttdeci">Vertex bottom_right() const</div><div class="ttdef"><b>Definition:</b> spritebatch.hpp:43</div></div>
<div class="ttc" id="classyage_1_1RenderBatch_html_ad5edaded9e6257aa2f3a3b7cae276307"><div class="ttname"><a href="classyage_1_1RenderBatch.html#ad5edaded9e6257aa2f3a3b7cae276307">yage::RenderBatch::num_vertices</a></div><div class="ttdeci">GLsizei num_vertices() const</div><div class="ttdef"><b>Definition:</b> spritebatch.hpp:58</div></div>
<div class="ttc" id="classyage_1_1RenderBatch_html_a6bedb60b10b6d47b7b198d3cb53eea2a"><div class="ttname"><a href="classyage_1_1RenderBatch.html#a6bedb60b10b6d47b7b198d3cb53eea2a">yage::RenderBatch::offset</a></div><div class="ttdeci">GLint offset() const</div><div class="ttdef"><b>Definition:</b> spritebatch.hpp:57</div></div>
<div class="ttc" id="classyage_1_1Glyph_html"><div class="ttname"><a href="classyage_1_1Glyph.html">yage::Glyph</a></div><div class="ttdoc">Glyph with information of the texture. </div><div class="ttdef"><b>Definition:</b> spritebatch.hpp:25</div></div>
<div class="ttc" id="classyage_1_1Glyph_html_a6a86e79419ccea7f6921685c197453a1"><div class="ttname"><a href="classyage_1_1Glyph.html#a6a86e79419ccea7f6921685c197453a1">yage::Glyph::top_left</a></div><div class="ttdeci">Vertex top_left() const</div><div class="ttdef"><b>Definition:</b> spritebatch.hpp:41</div></div>
<div class="ttc" id="namespaceyage_html"><div class="ttname"><a href="namespaceyage.html">yage</a></div><div class="ttdoc">Templated matrix class. </div><div class="ttdef"><b>Definition:</b> camera2d.hpp:17</div></div>
<div class="ttc" id="structyage_1_1Color_html"><div class="ttname"><a href="structyage_1_1Color.html">yage::Color</a></div><div class="ttdef"><b>Definition:</b> vertex.hpp:25</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_f562165b51c585c003877be645f219b5.html">YAGE</a></li><li class="navelem"><a class="el" href="spritebatch_8hpp.html">spritebatch.hpp</a></li>
    <li class="footer">Generated on Wed Aug 23 2017 23:00:29 for YAGE by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li>
  </ul>
</div>
</body>
</html>