43 lines
1.1 KiB
C++
43 lines
1.1 KiB
C++
// Filename: alphaTransformProperty.h
|
|
// Created by: jason (01Aug00)
|
|
//
|
|
////////////////////////////////////////////////////////////////////
|
|
|
|
#ifndef ALPHA_TRANSFORM_PROPERTY_H
|
|
#define ALPHA_TRANSFORM_PROPERTY_H
|
|
|
|
#include <pandabase.h>
|
|
|
|
#include <luse.h>
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Class : AlphaTransformProperty
|
|
// Description : This class defines the set state for polygon offseting
|
|
////////////////////////////////////////////////////////////////////
|
|
class EXPCL_PANDA AlphaTransformProperty {
|
|
public:
|
|
INLINE AlphaTransformProperty();
|
|
INLINE AlphaTransformProperty(float offset, float scale);
|
|
|
|
INLINE void set_offset(float offset);
|
|
INLINE float get_offset() const;
|
|
INLINE void set_scale(float scale);
|
|
INLINE float get_scale() const;
|
|
|
|
INLINE int compare_to(const AlphaTransformProperty &other) const;
|
|
void output(ostream &out) const;
|
|
|
|
private:
|
|
float _offset;
|
|
float _scale;
|
|
};
|
|
|
|
INLINE ostream &operator << (ostream &out, const AlphaTransformProperty &prop) {
|
|
prop.output(out);
|
|
return out;
|
|
}
|
|
|
|
#include "alphaTransformProperty.I"
|
|
|
|
#endif
|