GameApi
28
Library used by GameApi Builder tool
Loading...
Searching...
No Matches
texture.h
Go to the documentation of this file.
1
// Copyright 2021 The Draco Authors.
2
//
3
// Licensed under the Apache License, Version 2.0 (the "License");
4
// you may not use this file except in compliance with the License.
5
// You may obtain a copy of the License at
6
//
7
// http://www.apache.org/licenses/LICENSE-2.0
8
//
9
// Unless required by applicable law or agreed to in writing, software
10
// distributed under the License is distributed on an "AS IS" BASIS,
11
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
// See the License for the specific language governing permissions and
13
// limitations under the License.
14
//
15
#ifndef DRACO_TEXTURE_TEXTURE_H_
16
#define DRACO_TEXTURE_TEXTURE_H_
17
18
#include "
draco/draco_features.h
"
19
20
#ifdef DRACO_TRANSCODER_SUPPORTED
21
#include <memory>
22
#include <vector>
23
24
#include "draco/io/image_compression_options.h"
25
#include "
draco/texture/source_image.h
"
26
27
namespace
draco
{
28
29
// Texture class storing the source image data.
30
class
Texture {
31
public
:
32
void
Copy(Texture &other) { source_image_.Copy(other.source_image_); }
33
34
void
set_source_image(
const
SourceImage &
image
) { source_image_.Copy(
image
); }
35
const
SourceImage &source_image()
const
{
return
source_image_; }
36
SourceImage &source_image() {
return
source_image_; }
37
38
private
:
39
// If set this is the image that this texture is based from.
40
SourceImage source_image_;
41
};
42
43
}
// namespace draco
44
45
#endif
// DRACO_TRANSCODER_SUPPORTED
46
#endif
// DRACO_TEXTURE_TEXTURE_H_
draco_features.h
image
background image
Definition
meshpage_bootstrap.php:1723
draco
Definition
attribute_octahedron_transform.cc:21
source_image.h
draco
texture
texture.h
Generated by
1.15.0