Simple Nano Circuit
0.0.2
DrawPaperClass.h
1
#ifndef _DrawPaperClass_H_
2
#define _DrawPaperClass_H_
3
4
#include <SDL.h>
5
6
class
DrawPaperClass
7
{
8
private
:
9
int
width = 0;
10
int
height = 0;
11
bool
showingGrid =
false
;
12
13
// 网格纹理
14
SDL_Texture* gridTexture =
nullptr
;
15
16
SDL_Renderer* renderer =
nullptr
;
17
18
// 创建网格纹理
19
void
createGridTexture();
20
21
22
public
:
23
DrawPaperClass
(
int
,
int
, SDL_Renderer* );
24
~DrawPaperClass
();
25
26
void
Drawing();
27
28
bool
isShowingGrid();
29
void
setShowingGrid(
bool
);
30
void
toggleShowingGrid();
31
};
32
#endif
DrawPaperClass
Definition:
DrawPaperClass.h:7
sncircuit
src
DrawPaperClass.h
Generated by
1.9.4