Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/render/curves.h
| Show All 23 Lines | |||||
| class Device; | class Device; | ||||
| class DeviceScene; | class DeviceScene; | ||||
| class Progress; | class Progress; | ||||
| class Scene; | class Scene; | ||||
| void curvebounds(float *lower, float *upper, float3 *p, int dim); | void curvebounds(float *lower, float *upper, float3 *p, int dim); | ||||
| typedef enum curve_primitives { | typedef enum CurvePrimitiveType { | ||||
| CURVE_TRIANGLES, | CURVE_TRIANGLES = 0, | ||||
| CURVE_LINE_SEGMENTS, | CURVE_LINE_SEGMENTS = 1, | ||||
| CURVE_SEGMENTS, | CURVE_SEGMENTS = 2, | ||||
| CURVE_RIBBONS | CURVE_RIBBONS = 3, | ||||
| } curve_primitives; | |||||
| CURVE_NUM_PRIMITIVE_TYPES, | |||||
| typedef enum curve_shape { | } CurvePrimitiveType; | ||||
| CURVE_RIBBON, | |||||
| CURVE_THICK | typedef enum CurveShapeType { | ||||
| } curve_shape; | CURVE_RIBBON = 0, | ||||
| CURVE_THICK = 1, | |||||
| typedef enum curve_triangles { | CURVE_NUM_SHAPE_TYPES, | ||||
| } CurveShapeType; | |||||
| typedef enum CurveTriangleMethod { | |||||
| CURVE_CAMERA_TRIANGLES, | CURVE_CAMERA_TRIANGLES, | ||||
| CURVE_TESSELATED_TRIANGLES | CURVE_TESSELATED_TRIANGLES | ||||
| } curve_triangles; | } CurveTriangleMethod; | ||||
| typedef enum curve_lines { | typedef enum CurveLineMethod { | ||||
| CURVE_ACCURATE, | CURVE_ACCURATE, | ||||
| CURVE_CORRECTED, | CURVE_CORRECTED, | ||||
| CURVE_UNCORRECTED | CURVE_UNCORRECTED | ||||
| } curve_lines; | } CurveLineMethod; | ||||
| class ParticleCurveData { | class ParticleCurveData { | ||||
| public: | public: | ||||
| ParticleCurveData(); | ParticleCurveData(); | ||||
| ~ParticleCurveData(); | ~ParticleCurveData(); | ||||
| Show All 16 Lines | public: | ||||
| vector<float> curvekey_time; | vector<float> curvekey_time; | ||||
| }; | }; | ||||
| /* HairSystem Manager */ | /* HairSystem Manager */ | ||||
| class CurveSystemManager { | class CurveSystemManager { | ||||
| public: | public: | ||||
| int primitive; | CurvePrimitiveType primitive; | ||||
| int curve_shape; | CurveShapeType curve_shape; | ||||
| int line_method; | CurveLineMethod line_method; | ||||
| int triangle_method; | CurveTriangleMethod triangle_method; | ||||
| int resolution; | int resolution; | ||||
| int subdivisions; | int subdivisions; | ||||
| float minimum_width; | float minimum_width; | ||||
| float maximum_width; | float maximum_width; | ||||
| bool use_curves; | bool use_curves; | ||||
| bool use_encasing; | bool use_encasing; | ||||
| Show All 22 Lines | |||||