skybox.h
Go to the documentation of this file.
1 // License: Apache 2.0. See LICENSE file in root directory.
2 // Copyright(c) 2020 Intel Corporation. All Rights Reserved.
3 
4 #pragma once
5 
6 #include "rendering.h"
7 
8 class skybox
9 {
10 public:
11  skybox();
12  void render(rs2::float3 cam_position);
13  void reset() { initialized = false; }
14 
15 private:
16  std::shared_ptr<rs2::texture_buffer> plus_x, minus_x;
17  std::shared_ptr<rs2::texture_buffer> plus_y, minus_y;
18  std::shared_ptr<rs2::texture_buffer> plus_z, minus_z;
19  bool initialized = false;
20 };
void reset()
Definition: skybox.h:13
std::shared_ptr< rs2::texture_buffer > plus_y
Definition: skybox.h:17
std::shared_ptr< rs2::texture_buffer > plus_z
Definition: skybox.h:18
void render(rs2::float3 cam_position)
Definition: skybox.cpp:26
std::shared_ptr< rs2::texture_buffer > minus_z
Definition: skybox.h:18
std::shared_ptr< rs2::texture_buffer > minus_x
Definition: skybox.h:16
std::shared_ptr< rs2::texture_buffer > plus_x
Definition: skybox.h:16
bool initialized
Definition: skybox.h:19
std::shared_ptr< rs2::texture_buffer > minus_y
Definition: skybox.h:17
skybox()
Definition: skybox.cpp:15
Definition: skybox.h:8


librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:47:41