annotate Renderer/Engine/viewerSDL.h @ 2069:26aa08c9a1de draft default tip

cuda example fix
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sun, 12 Feb 2017 10:04:55 +0900
parents dbebc7afd08e
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
283
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
1 #ifndef INCLUDED_VIEWER_SDL
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
2 #define INCLUDED_VIEWER_SDL
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
3
728
c7afc21e448d add Engine/ViewerDevice , SgRootChange not work
aaa
parents: 539
diff changeset
4 #include "ViewerDevice.h"
283
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
5
728
c7afc21e448d add Engine/ViewerDevice , SgRootChange not work
aaa
parents: 539
diff changeset
6 class ViewerSDL : public ViewerDevice {
283
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
7 public:
728
c7afc21e448d add Engine/ViewerDevice , SgRootChange not work
aaa
parents: 539
diff changeset
8 ViewerSDL(TaskManager* manager) {};
c7afc21e448d add Engine/ViewerDevice , SgRootChange not work
aaa
parents: 539
diff changeset
9 ViewerSDL();
c7afc21e448d add Engine/ViewerDevice , SgRootChange not work
aaa
parents: 539
diff changeset
10 virtual ~ViewerSDL();
283
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
11
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
12 SDL_Surface *screen;
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
13 SDL_Surface *bitmap;
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
14
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
15 /* override function */
728
c7afc21e448d add Engine/ViewerDevice , SgRootChange not work
aaa
parents: 539
diff changeset
16 Uint32 *video_init(TaskManager *manager, int bpp, int width, int height);
283
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
17 void clean_pixels();
728
c7afc21e448d add Engine/ViewerDevice , SgRootChange not work
aaa
parents: 539
diff changeset
18 void clear_screen();
c7afc21e448d add Engine/ViewerDevice , SgRootChange not work
aaa
parents: 539
diff changeset
19 void free_device();
984
dbebc7afd08e minor fix
root@henri.cr.ie.u-ryukyu.ac.jp
parents: 728
diff changeset
20 uint32_t* flip_screen(uint32_t *);
dbebc7afd08e minor fix
root@henri.cr.ie.u-ryukyu.ac.jp
parents: 728
diff changeset
21
283
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
22 };
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
23
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
24 #endif