SketchUp SDK
Main Page
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
slapi
model
texture_writer.h
Go to the documentation of this file.
1
// Copyright 2013 Trimble Navigation Ltd. All Rights Reserved.
2
3
#ifndef SLAPI_MODEL_TEXTURE_WRITER_H_
4
#define SLAPI_MODEL_TEXTURE_WRITER_H_
5
6
#include <
slapi/geometry.h
>
7
#include <
slapi/unicodestring.h
>
8
#include <
slapi/model/defs.h
>
9
#include <
slapi/model/face.h
>
10
11
#ifdef __cplusplus
12
extern
"C"
{
13
#endif
14
33
SU_RESULT
SUTextureWriterCreate
(
SUTextureWriterRef
* writer);
34
43
SU_RESULT
SUTextureWriterRelease
(
SUTextureWriterRef
* writer);
44
60
SU_RESULT
SUTextureWriterLoadEntity
(
SUTextureWriterRef
writer,
61
SUEntityRef
entity,
62
long
* texture_id);
63
80
SU_RESULT
SUTextureWriterLoadFace
(
SUTextureWriterRef
writer,
81
SUFaceRef
face,
82
long
* front_texture_id,
83
long
* back_texture_id);
84
95
SU_RESULT
SUTextureWriterGetNumTextures
(
SUTextureWriterRef
writer,
96
size_t
* count);
97
116
SU_RESULT
SUTextureWriterWriteTexture
(
SUTextureWriterRef
writer,
117
long
texture_id,
118
const
char
* path,
119
bool
reduce_size);
134
SU_RESULT
SUTextureWriterWriteAllTextures
(
SUTextureWriterRef
writer,
135
const
char
* directory);
136
150
SU_RESULT
SUTextureWriterIsTextureAffine
(
SUTextureWriterRef
writer,
151
long
texture_id,
152
bool
* is_affine);
153
169
SU_RESULT
SUTextureWriterGetTextureFilePath
(
SUTextureWriterRef
writer,
170
long
texture_id,
171
SUStringRef
* file_path);
172
188
SU_RESULT
SUTextureWriterGetFrontFaceUVCoords
(
SUTextureWriterRef
writer,
189
SUFaceRef
face,
190
size_t
len,
191
const
struct
SUPoint3D
points[],
192
struct
SUPoint2D
uv_coords[]);
193
209
SU_RESULT
SUTextureWriterGetBackFaceUVCoords
(
SUTextureWriterRef
writer,
210
SUFaceRef
face,
211
size_t
len,
212
const
struct
SUPoint3D
points[],
213
struct
SUPoint2D
uv_coords[]);
214
229
SU_RESULT
SUTextureWriterGetTextureIdForEntity
(
SUTextureWriterRef
writer,
230
SUEntityRef
entity,
231
long
* texture_id);
232
249
SU_RESULT
SUTextureWriterGetTextureIdForFace
(
SUTextureWriterRef
writer,
250
SUFaceRef
face,
251
bool
front,
252
long
* texture_id);
253
254
#ifdef __cplusplus
255
}
// #ifdef __cplusplus
256
#endif
257
258
#endif // SLAPI_MODEL_TEXTURE_WRITER_H_
Generated on Tue Aug 6 2013 11:05:25 for SketchUp SDK by
1.8.3.1