Simulant  21.12-574
A portable game engine for Windows, OSX, Linux, Dreamcast, and PSP
gl1x_renderer.h
1 /* * Copyright (c) 2011-2017 Luke Benstead https://simulant-engine.appspot.com
2  *
3  * This file is part of Simulant.
4  *
5  * Simulant is free software: you can redistribute it and/or modify
6  * it under the terms of the GNU Lesser General Public License as published by
7  * the Free Software Foundation, either version 3 of the License, or
8  * (at your option) any later version.
9  *
10  * Simulant is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public License
16  * along with Simulant. If not, see <http://www.gnu.org/licenses/>.
17  */
18 
19 #pragma once
20 
21 #include "../renderer.h"
22 #include "../gl_renderer.h"
23 
24 namespace smlt {
25 
27  public GLRenderer {
28 
29 public:
30  friend class GL1RenderQueueVisitor;
31 
32  GL1XRenderer(Window* window);
33 
34  batcher::RenderGroupKey prepare_render_group(
35  batcher::RenderGroup* group,
36  const Renderable *renderable,
37  const MaterialPass *material_pass,
38  const uint8_t pass_number,
39  const bool is_blended,
40  const float distance_to_camera
41  ) override;
42 
43  std::shared_ptr<batcher::RenderQueueVisitor> get_render_queue_visitor(CameraPtr camera) override;
44 
45  void init_context() override;
46 
47  std::string name() const override {
48  return "gl1x";
49  }
50 
51  void prepare_to_render(const Renderable *renderable) override {
52  _S_UNUSED(renderable);
53  }
54 };
55 
56 }
smlt::GLRenderer
Definition: gl_renderer.h:50
smlt
Definition: animation.cpp:25
smlt::Window
Definition: window.h:65
smlt::batcher::RenderGroupKey
Definition: render_queue.h:39
smlt::GL1RenderQueueVisitor
Definition: gl1x_render_queue_visitor.h:21
smlt::MaterialPass
Definition: material.h:47
smlt::batcher::RenderGroup
Definition: render_queue.h:47
smlt::default_init_ptr< Camera >
smlt::Renderable
Definition: renderable.h:67
smlt::GL1XRenderer
Definition: gl1x_renderer.h:27