Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions include/cinder/ImageIo.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@ typedef std::shared_ptr<class ImageTargetFile> ImageTargetFileRef;

class CI_API ImageIo {
public:
typedef enum ColorModel { CM_RGB, CM_GRAY, CM_UNKNOWN } ColorModel;
typedef enum DataType { UINT8, UINT16, FLOAT32, FLOAT16, DATA_UNKNOWN } DataType;
typedef enum ChannelType { CHAN_RGB_R, CHAN_RGB_G, CHAN_RGB_B, CHAN_GRAY, CHAN_ALPHA, CHAN_MASK, CHAN_LAB_L, CHAN_LAB_A, CHAN_LAB_B,
enum ColorModel { CM_RGB, CM_GRAY, CM_UNKNOWN };
enum DataType { UINT8, UINT16, FLOAT32, FLOAT16, DATA_UNKNOWN };
enum ChannelType { CHAN_RGB_R, CHAN_RGB_G, CHAN_RGB_B, CHAN_GRAY, CHAN_ALPHA, CHAN_MASK, CHAN_LAB_L, CHAN_LAB_A, CHAN_LAB_B,
CHAN_YUV_Y, CHAN_YUV_U, CHAN_YUV_V, CHAN_CMYK_C, CHAN_CMYK_M, CHAN_CMYK_Y, CHAN_CMYK_K,
CHAN_UNKNOWN } ChannelType;
typedef enum ChannelOrder { RGBA, BGRA, ARGB, ABGR, RGBX, BGRX, XRGB, XBGR, RGB, BGR, Y, YA, CUSTOM } ChannelOrder; // Y = Gray/Luminance, X = ignored
CHAN_UNKNOWN };
enum ChannelOrder { RGBA, BGRA, ARGB, ABGR, RGBX, BGRX, XRGB, XBGR, RGB, BGR, Y, YA, CUSTOM }; // Y = Gray/Luminance, X = ignored

int32_t getWidth() const { return mWidth; }
int32_t getHeight() const { return mHeight; }
Expand Down
4 changes: 2 additions & 2 deletions include/cinder/Log.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,14 @@

namespace cinder { namespace log {

typedef enum {
enum Level {
LEVEL_VERBOSE,
LEVEL_DEBUG,
LEVEL_INFO,
LEVEL_WARNING,
LEVEL_ERROR,
LEVEL_FATAL
} Level;
};

struct CI_API Location {
Location() {}
Expand Down
2 changes: 1 addition & 1 deletion include/cinder/Text.h
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class CI_API TextLayout {

class CI_API TextBox {
public:
typedef enum Alignment { LEFT, CENTER, RIGHT } Alignment;
enum Alignment { LEFT, CENTER, RIGHT };
enum { GROW = 0 };

TextBox() : mAlign( LEFT ), mSize( GROW, GROW ), mFont( Font::getDefault() ), mInvalid( true ), mColor( 1, 1, 1, 1 ), mBackgroundColor( 0, 0, 0, 0 ), mPremultiplied( false ), mLigate( true ) {}
Expand Down
2 changes: 1 addition & 1 deletion include/cinder/Triangulate.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ namespace cinder {
//! Converts an arbitrary Shape2d into a TriMesh2d
class CI_API Triangulator {
public:
typedef enum Winding { WINDING_ODD, WINDING_NONZERO, WINDING_POSITIVE, WINDING_NEGATIVE, WINDING_ABS_GEQ_TWO } Winding;
enum Winding { WINDING_ODD, WINDING_NONZERO, WINDING_POSITIVE, WINDING_NEGATIVE, WINDING_ABS_GEQ_TWO };

//! Default constructor
Triangulator();
Expand Down
2 changes: 1 addition & 1 deletion include/cinder/Xml.h
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ class CI_API XmlTree {
};

//! Enum listing all types of XML nodes understood by the parser.
typedef enum { NODE_UNKNOWN, NODE_DOCUMENT, NODE_ELEMENT, NODE_CDATA, NODE_COMMENT, NODE_DATA } NodeType;
enum NodeType { NODE_UNKNOWN, NODE_DOCUMENT, NODE_ELEMENT, NODE_CDATA, NODE_COMMENT, NODE_DATA };

//! Default constructor, creating an empty node.
XmlTree() : mParent( 0 ), mNodeType( NODE_ELEMENT ) {}
Expand Down
2 changes: 1 addition & 1 deletion include/cinder/app/cocoa/AppCocoaTouch.h
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ class AppCocoaTouch : public AppBase {
//! Retuens a pointer to the native UITextView, which can be used to customize the virtual keyboard.
::UITextView *getKeyboardTextView() const;

typedef enum StatusBarAnimation { NONE, FADE, SLIDE } StatusBarAnimation;
enum StatusBarAnimation { NONE, FADE, SLIDE };
//! Shows the system status bar
void showStatusBar( StatusBarAnimation animation = StatusBarAnimation::NONE );
//! Returns whether the system status bar is visible
Expand Down
2 changes: 1 addition & 1 deletion include/cinder/gl/Vao.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class CI_API Vao : public std::enable_shared_from_this<Vao> {
void setLabel( const std::string &label );

struct VertexAttrib {
typedef enum { FLOAT, INTEGER } PointerType;
enum PointerType { FLOAT, INTEGER };

VertexAttrib()
: mEnabled( false ), mSize( 0 ), mType( GL_FLOAT ), mNormalized( false ), mStride( 0 ), mPointer( 0 ), mArrayBufferBinding( 0 ), mDivisor( 0 ), mPointerType( FLOAT )
Expand Down
8 changes: 4 additions & 4 deletions include/cinder/msw/StackWalker.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class StackWalkerInternal; // forward
class StackWalker
{
public:
typedef enum StackWalkOptions
enum StackWalkOptions
{
// No addition info will be retrived
// (only the address is available)
Expand Down Expand Up @@ -84,7 +84,7 @@ class StackWalker

// Contains all options (default)
OptionsAll = 0x3F
} StackWalkOptions;
};

StackWalker(
int options = OptionsAll, // 'int' is by design, to combine the enum-flags
Expand Down Expand Up @@ -122,7 +122,7 @@ class StackWalker

protected:
// Entry for each Callstack-Entry
typedef struct CallstackEntry
struct CallstackEntry
{
DWORD64 offset; // if 0, we have no valid entry
CHAR name[STACKWALK_MAX_NAMELEN];
Expand All @@ -137,7 +137,7 @@ class StackWalker
CHAR moduleName[STACKWALK_MAX_NAMELEN];
DWORD64 baseOfImage;
CHAR loadedImageName[STACKWALK_MAX_NAMELEN];
} CallstackEntry;
};

enum CallstackEntryType {firstEntry, nextEntry, lastEntry};

Expand Down
6 changes: 3 additions & 3 deletions include/cinder/qtime/AvfWriter.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,12 @@ typedef std::shared_ptr<MovieWriter> MovieWriterRef;

class MovieWriter {
public:
typedef enum Codec { H264, JPEG
enum Codec { H264, JPEG
#if ! defined( CINDER_COCOA_TOUCH )
, PRO_RES_4444, PRO_RES_422
#endif
} Codec;
typedef enum FileType { QUICK_TIME_MOVIE, MPEG4, M4V } FileType;
};
enum FileType { QUICK_TIME_MOVIE, MPEG4, M4V };

//! Defines the encoding parameters of a MovieWriter
class Format {
Expand Down
8 changes: 4 additions & 4 deletions include/cinder/svg/Svg.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@

namespace cinder { namespace svg {

typedef enum { FILL_RULE_NONZERO, FILL_RULE_EVENODD } FillRule;
typedef enum { LINE_CAP_BUTT, LINE_CAP_ROUND, LINE_CAP_SQUARE } LineCap;
typedef enum { LINE_JOIN_MITER, LINE_JOIN_ROUND, LINE_JOIN_BEVEL } LineJoin;
typedef enum { WEIGHT_100, WEIGHT_200, WEIGHT_300, WEIGHT_400, WEIGHT_NORMAL = WEIGHT_400, WEIGHT_500, WEIGHT_600, WEIGHT_700, WEIGHT_BOLD = WEIGHT_700, WEIGHT_800, WEIGHT_900 } FontWeight;
enum FillRule { FILL_RULE_NONZERO, FILL_RULE_EVENODD };
enum LineCap { LINE_CAP_BUTT, LINE_CAP_ROUND, LINE_CAP_SQUARE };
enum LineJoin { LINE_JOIN_MITER, LINE_JOIN_ROUND, LINE_JOIN_BEVEL };
enum FontWeight { WEIGHT_100, WEIGHT_200, WEIGHT_300, WEIGHT_400, WEIGHT_NORMAL = WEIGHT_400, WEIGHT_500, WEIGHT_600, WEIGHT_700, WEIGHT_BOLD = WEIGHT_700, WEIGHT_800, WEIGHT_900 };

class Node;
class Group;
Expand Down
4 changes: 2 additions & 2 deletions src/cinder/gl/TextureFormatParsers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ void parseDds( const DataSourceRef &dataSource, TextureData *resultData )
} ;
} DdPixelFormat;

typedef struct DdSurface // this is lifted and adapted from DDSURFACEDESC2
struct DdSurface // this is lifted and adapted from DDSURFACEDESC2
{
uint32_t dwSize; // size of the DDSURFACEDESC structure
uint32_t dwFlags; // determines what fields are valid
Expand Down Expand Up @@ -229,7 +229,7 @@ void parseDds( const DataSourceRef &dataSource, TextureData *resultData )
};
ddCaps2 ddsCaps; // direct draw surface capabilities
uint32_t dwTextureStage; // stage in multitexture cascade
} DdSurface;
};

typedef struct {
uint32_t/*DXGI_FORMAT*/ dxgiFormat;
Expand Down