SketchUp SDK
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
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 
44 
61  SUEntityRef entity,
62  long* texture_id);
63 
81  SUFaceRef face,
82  long* front_texture_id,
83  long* back_texture_id);
84 
96  size_t* count);
97 
117  long texture_id,
118  const char* path,
119  bool reduce_size);
135  const char* directory);
136 
151  long texture_id,
152  bool* is_affine);
153 
170  long texture_id,
171  SUStringRef* file_path);
172 
189  SUFaceRef face,
190  size_t len,
191  const struct SUPoint3D points[],
192  struct SUPoint2D uv_coords[]);
193 
210  SUFaceRef face,
211  size_t len,
212  const struct SUPoint3D points[],
213  struct SUPoint2D uv_coords[]);
214 
230  SUEntityRef entity,
231  long* texture_id);
232 
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_