////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//  OBColorComponent.h
//    A coordinate used in the CrossPlatform function calls.
//
//  Copyright (C) 2010 MYOB US, Inc., all rights reserved.
//
//  Change History (most recent first):
//
//	09/30/10  K.L.S.  Created file.
//
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

#pragma once

#include "CrossPlatform/CPPlatformSpecificMacros.h"

typedef PLATFORM_SPECIFIC_MAC_OR_WINDOWS(float, unsigned char) OBColorComponent;

inline OBColorComponent ToOBColorComponent(int Component) { return (OBColorComponent)Component; }
inline OBColorComponent ToOBColorComponent(float Component) { return (OBColorComponent)Component; }
inline OBColorComponent ToOBColorComponent(double Component) { return (OBColorComponent)Component; }
