Sha256: eaee546e648d9d89e2fec452502d13aa54e0b699609daa97fde170ecbf091174

Contents?: true

Size: 576 Bytes

Versions: 21

Compression:

Stored size: 576 Bytes

Contents

#pragma once
#include <vector>
#include <chrono>

#include <opengl.h>

#include <pixlib/shader.hpp>
#include <pixlib/cube.hpp>
#include <pixlib/camera.hpp>

namespace Pixlib {
  class SceneRender {
  protected:
    SceneRender();
  };

  class ScreenRender : public SceneRender {

  public:
    ScreenRender();

    void render(const IsoCamera& perspective, int width, int height);
    std::vector<Drawable*> models;

  private:

    Shader shader;
    void setupLights(const IsoCamera& perspective);
    std::chrono::time_point<std::chrono::steady_clock> lastRender;

  };
}

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
pixo-0.4.5 ext/pixo/pixlib/include/pixlib/renderer.hpp
pixo-0.4.4 ext/pixo/pixlib/include/pixlib/renderer.hpp
pixo-0.4.3 ext/pixo/pixlib/include/pixlib/renderer.hpp
pixo-0.4.2 ext/pixo/pixlib/include/pixlib/renderer.hpp
pixo-0.4.1 ext/pixo/pixlib/include/pixlib/renderer.hpp
pixo-0.4.0 ext/pixo/pixlib/include/pixlib/renderer.hpp
pixo-0.3.2 ext/pixo/pixlib/include/pixlib/renderer.hpp
pixo-0.3.1 ext/pixo/pixlib/include/pixlib/renderer.hpp
pixo-0.3.0 ext/pixo/pixlib/include/pixlib/renderer.hpp
pixo-0.2.6 ext/pixo/pixlib/include/pixlib/renderer.hpp
pixo-0.2.5 ext/pixo/pixlib/include/pixlib/renderer.hpp
pixo-0.2.4 ext/pixo/pixlib/include/pixlib/renderer.hpp
pixo-0.2.3 ext/pixo/pixlib/include/pixlib/renderer.hpp
pixo-0.2.2 ext/pixo/pixlib/include/pixlib/renderer.hpp
pixo-0.2.1 ext/pixo/pixlib/include/pixlib/renderer.hpp
pixo-0.2.0 ext/pixo/pixlib/include/pixlib/renderer.hpp
pixo-0.1.4 ext/pixo/pixlib/include/pixlib/renderer.hpp
pixo-0.1.3 ext/pixo/pixlib/include/pixlib/renderer.hpp
pixo-0.1.2 ext/pixo/pixlib/include/pixlib/renderer.hpp
pixo-0.1.1 ext/pixo/pixlib/include/pixlib/renderer.hpp