Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
app
android
jni
tango-gl
include
tango-gl
texture.h
Go to the documentation of this file.
1
/*
2
* Copyright 2014 Google Inc. All Rights Reserved.
3
*
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
* you may not use this file except in compliance with the License.
6
* You may obtain a copy of the License at
7
*
8
* http://www.apache.org/licenses/LICENSE-2.0
9
*
10
* Unless required by applicable law or agreed to in writing, software
11
* distributed under the License is distributed on an "AS IS" BASIS,
12
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
* See the License for the specific language governing permissions and
14
* limitations under the License.
15
*/
16
17
#ifndef TANGO_GL_TEXTURE_H_
18
#define TANGO_GL_TEXTURE_H_
19
20
#include <errno.h>
21
#include <png.h>
22
23
#include "
tango-gl/util.h
"
24
25
namespace
tango_gl
{
26
class
Texture
{
27
public
:
28
Texture
(
const
char
* file_path);
29
Texture
(
const
Texture
& other) =
delete
;
30
Texture
&
operator=
(
const
Texture
&) =
delete
;
31
~Texture
();
32
33
bool
LoadFromPNG
(
const
char
* file_path);
34
GLuint
GetTextureID
()
const
;
35
36
private
:
37
png_uint_32
width_
,
height_
;
38
int
bit_depth_
,
color_type_
;
39
char
*
byte_data_
;
40
GLuint
texture_id_
;
41
};
42
}
// namespace tango_gl
43
#endif // TANGO_GL_TEXTURE_H_
util.h
tango_gl::Texture::bit_depth_
int bit_depth_
Definition:
texture.h:38
tango_gl::Texture::operator=
Texture & operator=(const Texture &)=delete
tango_gl::Texture
Definition:
texture.h:26
tango_gl::Texture::GetTextureID
GLuint GetTextureID() const
Definition:
texture.cpp:98
GLuint
unsigned int GLuint
Definition:
dummy.cpp:78
tango_gl::Texture::color_type_
int color_type_
Definition:
texture.h:38
tango_gl::Texture::LoadFromPNG
bool LoadFromPNG(const char *file_path)
Definition:
texture.cpp:42
tango_gl::Texture::height_
png_uint_32 height_
Definition:
texture.h:37
tango_gl
Definition:
axis.cpp:20
tango_gl::Texture::texture_id_
GLuint texture_id_
Definition:
texture.h:40
tango_gl::Texture::byte_data_
char * byte_data_
Definition:
texture.h:39
tango_gl::Texture::Texture
Texture(const char *file_path)
Definition:
texture.cpp:36
tango_gl::Texture::~Texture
~Texture()
Definition:
texture.cpp:100
tango_gl::Texture::width_
png_uint_32 width_
Definition:
texture.h:37
rtabmap
Author(s): Mathieu Labbe
autogenerated on Wed Jun 5 2019 22:43:40