Cocos2D.CCMacros
Class CCMacros
Namespace: Cocos2D
Assembly: Cocos2D.dll, cocos2d_mono.Core.Android.dll, cocos2d_mono.Core.DesktopGL.dll, cocos2d-mono.Core.iOS.dll, cocos2d_mono.Core.Linux.dll, cocos2d_mono.Core.macOS.dll, cocos2d_mono.Windows.dll, cocos2d_mono.DesktopGL.dll, cocos2d-mono.iOS.dll, cocos2d_mono.Linux.dll, cocos2d_mono.macOS.dll
public static class CCMacros
Inheritance
Inherited Members
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Fields
CCDirectorStatsUpdateIntervalInSeconds
public static readonly float CCDirectorStatsUpdateIntervalInSeconds
Field Value
CCDirectorStatsUpdateIntervalInSeconds
public static readonly float CCDirectorStatsUpdateIntervalInSeconds
Field Value
CCDirectorStatsUpdateIntervalInSeconds
public static readonly float CCDirectorStatsUpdateIntervalInSeconds
Field Value
CCDirectorStatsUpdateIntervalInSeconds
public static readonly float CCDirectorStatsUpdateIntervalInSeconds
Field Value
CCDirectorStatsUpdateIntervalInSeconds
public static readonly float CCDirectorStatsUpdateIntervalInSeconds
Field Value
CCDirectorStatsUpdateIntervalInSeconds
public static readonly float CCDirectorStatsUpdateIntervalInSeconds
Field Value
CCDirectorStatsUpdateIntervalInSeconds
public static readonly float CCDirectorStatsUpdateIntervalInSeconds
Field Value
CCDirectorStatsUpdateIntervalInSeconds
public static readonly float CCDirectorStatsUpdateIntervalInSeconds
Field Value
CCDirectorStatsUpdateIntervalInSeconds
public static readonly float CCDirectorStatsUpdateIntervalInSeconds
Field Value
CCDirectorStatsUpdateIntervalInSeconds
public static readonly float CCDirectorStatsUpdateIntervalInSeconds
Field Value
CCDirectorStatsUpdateIntervalInSeconds
public static readonly float CCDirectorStatsUpdateIntervalInSeconds
Field Value
CCDirectorStatsUpdateIntervalInSeconds
public static readonly float CCDirectorStatsUpdateIntervalInSeconds
Field Value
CCHiResDisplayFilenameSuffix
public static readonly string CCHiResDisplayFilenameSuffix
Field Value
CCHiResDisplayFilenameSuffix
public static readonly string CCHiResDisplayFilenameSuffix
Field Value
CCHiResDisplayFilenameSuffix
public static readonly string CCHiResDisplayFilenameSuffix
Field Value
CCHiResDisplayFilenameSuffix
public static readonly string CCHiResDisplayFilenameSuffix
Field Value
CCHiResDisplayFilenameSuffix
public static readonly string CCHiResDisplayFilenameSuffix
Field Value
CCHiResDisplayFilenameSuffix
public static readonly string CCHiResDisplayFilenameSuffix
Field Value
CCHiResDisplayFilenameSuffix
public static readonly string CCHiResDisplayFilenameSuffix
Field Value
CCHiResDisplayFilenameSuffix
public static readonly string CCHiResDisplayFilenameSuffix
Field Value
CCHiResDisplayFilenameSuffix
public static readonly string CCHiResDisplayFilenameSuffix
Field Value
CCHiResDisplayFilenameSuffix
public static readonly string CCHiResDisplayFilenameSuffix
Field Value
CCHiResDisplayFilenameSuffix
public static readonly string CCHiResDisplayFilenameSuffix
Field Value
CCHiResDisplayFilenameSuffix
public static readonly string CCHiResDisplayFilenameSuffix
Field Value
CCSpriteIndexNotInitialized
public static readonly int CCSpriteIndexNotInitialized
Field Value
CCSpriteIndexNotInitialized
public static readonly int CCSpriteIndexNotInitialized
Field Value
CCSpriteIndexNotInitialized
public static readonly int CCSpriteIndexNotInitialized
Field Value
CCSpriteIndexNotInitialized
public static readonly int CCSpriteIndexNotInitialized
Field Value
CCSpriteIndexNotInitialized
public static readonly int CCSpriteIndexNotInitialized
Field Value
CCSpriteIndexNotInitialized
public static readonly int CCSpriteIndexNotInitialized
Field Value
CCSpriteIndexNotInitialized
public static readonly int CCSpriteIndexNotInitialized
Field Value
CCSpriteIndexNotInitialized
public static readonly int CCSpriteIndexNotInitialized
Field Value
CCSpriteIndexNotInitialized
public static readonly int CCSpriteIndexNotInitialized
Field Value
CCSpriteIndexNotInitialized
public static readonly int CCSpriteIndexNotInitialized
Field Value
CCSpriteIndexNotInitialized
public static readonly int CCSpriteIndexNotInitialized
Field Value
CCSpriteIndexNotInitialized
public static readonly int CCSpriteIndexNotInitialized
Field Value
FLT_EPSILON
public static readonly float FLT_EPSILON
Field Value
FLT_EPSILON
public static readonly float FLT_EPSILON
Field Value
FLT_EPSILON
public static readonly float FLT_EPSILON
Field Value
FLT_EPSILON
public static readonly float FLT_EPSILON
Field Value
FLT_EPSILON
public static readonly float FLT_EPSILON
Field Value
FLT_EPSILON
public static readonly float FLT_EPSILON
Field Value
FLT_EPSILON
public static readonly float FLT_EPSILON
Field Value
FLT_EPSILON
public static readonly float FLT_EPSILON
Field Value
FLT_EPSILON
public static readonly float FLT_EPSILON
Field Value
FLT_EPSILON
public static readonly float FLT_EPSILON
Field Value
FLT_EPSILON
public static readonly float FLT_EPSILON
Field Value
FLT_EPSILON
public static readonly float FLT_EPSILON
Field Value
Methods
CCContentScaleFactor()
public static float CCContentScaleFactor()
Returns
CCContentScaleFactor()
public static float CCContentScaleFactor()
Returns
CCContentScaleFactor()
public static float CCContentScaleFactor()
Returns
CCContentScaleFactor()
public static float CCContentScaleFactor()
Returns
CCContentScaleFactor()
public static float CCContentScaleFactor()
Returns
CCContentScaleFactor()
public static float CCContentScaleFactor()
Returns
CCContentScaleFactor()
public static float CCContentScaleFactor()
Returns
CCContentScaleFactor()
public static float CCContentScaleFactor()
Returns
CCContentScaleFactor()
public static float CCContentScaleFactor()
Returns
CCContentScaleFactor()
public static float CCContentScaleFactor()
Returns
CCContentScaleFactor()
public static float CCContentScaleFactor()
Returns
CCContentScaleFactor()
public static float CCContentScaleFactor()
Returns
CCDegreesToRadians(float)
public static float CCDegreesToRadians(float angle)
Parameters
angle
float
Returns
CCDegreesToRadians(float)
public static float CCDegreesToRadians(float angle)
Parameters
angle
float
Returns
CCDegreesToRadians(float)
public static float CCDegreesToRadians(float angle)
Parameters
angle
float
Returns
CCDegreesToRadians(float)
public static float CCDegreesToRadians(float angle)
Parameters
angle
float
Returns
CCDegreesToRadians(float)
public static float CCDegreesToRadians(float angle)
Parameters
angle
float
Returns
CCDegreesToRadians(float)
public static float CCDegreesToRadians(float angle)
Parameters
angle
float
Returns
CCDegreesToRadians(float)
public static float CCDegreesToRadians(float angle)
Parameters
angle
float
Returns
CCDegreesToRadians(float)
public static float CCDegreesToRadians(float angle)
Parameters
angle
float
Returns
CCDegreesToRadians(float)
public static float CCDegreesToRadians(float angle)
Parameters
angle
float
Returns
CCDegreesToRadians(float)
public static float CCDegreesToRadians(float angle)
Parameters
angle
float
Returns
CCDegreesToRadians(float)
public static float CCDegreesToRadians(float angle)
Parameters
angle
float
Returns
CCDegreesToRadians(float)
public static float CCDegreesToRadians(float angle)
Parameters
angle
float
Returns
CCRadiansToDegrees(float)
public static float CCRadiansToDegrees(float angle)
Parameters
angle
float
Returns
CCRadiansToDegrees(float)
public static float CCRadiansToDegrees(float angle)
Parameters
angle
float
Returns
CCRadiansToDegrees(float)
public static float CCRadiansToDegrees(float angle)
Parameters
angle
float
Returns
CCRadiansToDegrees(float)
public static float CCRadiansToDegrees(float angle)
Parameters
angle
float
Returns
CCRadiansToDegrees(float)
public static float CCRadiansToDegrees(float angle)
Parameters
angle
float
Returns
CCRadiansToDegrees(float)
public static float CCRadiansToDegrees(float angle)
Parameters
angle
float
Returns
CCRadiansToDegrees(float)
public static float CCRadiansToDegrees(float angle)
Parameters
angle
float
Returns
CCRadiansToDegrees(float)
public static float CCRadiansToDegrees(float angle)
Parameters
angle
float
Returns
CCRadiansToDegrees(float)
public static float CCRadiansToDegrees(float angle)
Parameters
angle
float
Returns
CCRadiansToDegrees(float)
public static float CCRadiansToDegrees(float angle)
Parameters
angle
float
Returns
CCRadiansToDegrees(float)
public static float CCRadiansToDegrees(float angle)
Parameters
angle
float
Returns
CCRadiansToDegrees(float)
public static float CCRadiansToDegrees(float angle)
Parameters
angle
float
Returns
CCRandomBetween0And1()
public static float CCRandomBetween0And1()
Returns
CCRandomBetween0And1()
public static float CCRandomBetween0And1()
Returns
CCRandomBetween0And1()
public static float CCRandomBetween0And1()
Returns
CCRandomBetween0And1()
public static float CCRandomBetween0And1()
Returns
CCRandomBetween0And1()
public static float CCRandomBetween0And1()
Returns
CCRandomBetween0And1()
public static float CCRandomBetween0And1()
Returns
CCRandomBetween0And1()
public static float CCRandomBetween0And1()
Returns
CCRandomBetween0And1()
public static float CCRandomBetween0And1()
Returns
CCRandomBetween0And1()
public static float CCRandomBetween0And1()
Returns
CCRandomBetween0And1()
public static float CCRandomBetween0And1()
Returns
CCRandomBetween0And1()
public static float CCRandomBetween0And1()
Returns
CCRandomBetween0And1()
public static float CCRandomBetween0And1()
Returns
CCRandomBetweenNegative1And1()
returns a random float between -1 and 1
public static float CCRandomBetweenNegative1And1()
Returns
CCRandomBetweenNegative1And1()
returns a random float between -1 and 1
public static float CCRandomBetweenNegative1And1()
Returns
CCRandomBetweenNegative1And1()
public static float CCRandomBetweenNegative1And1()
Returns
CCRandomBetweenNegative1And1()
public static float CCRandomBetweenNegative1And1()
Returns
CCRandomBetweenNegative1And1()
public static float CCRandomBetweenNegative1And1()
Returns
CCRandomBetweenNegative1And1()
public static float CCRandomBetweenNegative1And1()
Returns
CCRandomBetweenNegative1And1()
public static float CCRandomBetweenNegative1And1()
Returns
CCRandomBetweenNegative1And1()
public static float CCRandomBetweenNegative1And1()
Returns
CCRandomBetweenNegative1And1()
public static float CCRandomBetweenNegative1And1()
Returns
CCRandomBetweenNegative1And1()
public static float CCRandomBetweenNegative1And1()
Returns
CCRandomBetweenNegative1And1()
public static float CCRandomBetweenNegative1And1()
Returns
CCRandomBetweenNegative1And1()
public static float CCRandomBetweenNegative1And1()
Returns
CCSwap<T>(ref T, ref T)
simple macro that swaps 2 variables
public static void CCSwap<T>(ref T x, ref T y)
Parameters
x
T
y
T
Type Parameters
T
CCSwap<T>(ref T, ref T)
simple macro that swaps 2 variables
public static void CCSwap<T>(ref T x, ref T y)
Parameters
x
T
y
T
Type Parameters
T
CCSwap<T>(ref T, ref T)
public static void CCSwap<T>(ref T x, ref T y)
Parameters
x
T
y
T
Type Parameters
T
CCSwap<T>(ref T, ref T)
public static void CCSwap<T>(ref T x, ref T y)
Parameters
x
T
y
T
Type Parameters
T
CCSwap<T>(ref T, ref T)
public static void CCSwap<T>(ref T x, ref T y)
Parameters
x
T
y
T
Type Parameters
T
CCSwap<T>(ref T, ref T)
public static void CCSwap<T>(ref T x, ref T y)
Parameters
x
T
y
T
Type Parameters
T
CCSwap<T>(ref T, ref T)
public static void CCSwap<T>(ref T x, ref T y)
Parameters
x
T
y
T
Type Parameters
T
CCSwap<T>(ref T, ref T)
public static void CCSwap<T>(ref T x, ref T y)
Parameters
x
T
y
T
Type Parameters
T
CCSwap<T>(ref T, ref T)
public static void CCSwap<T>(ref T x, ref T y)
Parameters
x
T
y
T
Type Parameters
T
CCSwap<T>(ref T, ref T)
public static void CCSwap<T>(ref T x, ref T y)
Parameters
x
T
y
T
Type Parameters
T
CCSwap<T>(ref T, ref T)
public static void CCSwap<T>(ref T x, ref T y)
Parameters
x
T
y
T
Type Parameters
T
CCSwap<T>(ref T, ref T)
public static void CCSwap<T>(ref T x, ref T y)
Parameters
x
T
y
T
Type Parameters
T
PixelsToPoints(CCRect)
public static CCRect PixelsToPoints(this CCRect r)
Parameters
r
CCRect
Returns
PixelsToPoints(CCSize)
public static CCSize PixelsToPoints(this CCSize s)
Parameters
s
CCSize
Returns
PixelsToPoints(CCPoint)
public static CCPoint PixelsToPoints(this CCPoint p)
Parameters
p
CCPoint
Returns
PixelsToPoints(CCRect)
public static CCRect PixelsToPoints(this CCRect r)
Parameters
r
CCRect
Returns
PixelsToPoints(CCSize)
public static CCSize PixelsToPoints(this CCSize s)
Parameters
s
CCSize
Returns
PixelsToPoints(CCPoint)
public static CCPoint PixelsToPoints(this CCPoint p)
Parameters
p
CCPoint
Returns
PixelsToPoints(CCRect)
public static CCRect PixelsToPoints(this CCRect r)
Parameters
r
CCRect
Returns
PixelsToPoints(CCSize)
public static CCSize PixelsToPoints(this CCSize s)
Parameters
s
CCSize
Returns
PixelsToPoints(CCPoint)
public static CCPoint PixelsToPoints(this CCPoint p)
Parameters
p
CCPoint
Returns
PixelsToPoints(CCRect)
public static CCRect PixelsToPoints(this CCRect r)
Parameters
r
CCRect
Returns
PixelsToPoints(CCSize)
public static CCSize PixelsToPoints(this CCSize s)
Parameters
s
CCSize
Returns
PixelsToPoints(CCPoint)
public static CCPoint PixelsToPoints(this CCPoint p)
Parameters
p
CCPoint
Returns
PixelsToPoints(CCRect)
public static CCRect PixelsToPoints(this CCRect r)
Parameters
r
CCRect
Returns
PixelsToPoints(CCSize)
public static CCSize PixelsToPoints(this CCSize s)
Parameters
s
CCSize
Returns
PixelsToPoints(CCPoint)
public static CCPoint PixelsToPoints(this CCPoint p)
Parameters
p
CCPoint
Returns
PixelsToPoints(CCRect)
public static CCRect PixelsToPoints(this CCRect r)
Parameters
r
CCRect
Returns
PixelsToPoints(CCSize)
public static CCSize PixelsToPoints(this CCSize s)
Parameters
s
CCSize
Returns
PixelsToPoints(CCPoint)
public static CCPoint PixelsToPoints(this CCPoint p)
Parameters
p
CCPoint
Returns
PixelsToPoints(CCRect)
public static CCRect PixelsToPoints(this CCRect r)
Parameters
r
CCRect
Returns
PixelsToPoints(CCSize)
public static CCSize PixelsToPoints(this CCSize s)
Parameters
s
CCSize
Returns
PixelsToPoints(CCPoint)
public static CCPoint PixelsToPoints(this CCPoint p)
Parameters
p
CCPoint
Returns
PixelsToPoints(CCRect)
public static CCRect PixelsToPoints(this CCRect r)
Parameters
r
CCRect
Returns
PixelsToPoints(CCSize)
public static CCSize PixelsToPoints(this CCSize s)
Parameters
s
CCSize
Returns
PixelsToPoints(CCPoint)
public static CCPoint PixelsToPoints(this CCPoint p)
Parameters
p
CCPoint
Returns
PixelsToPoints(CCRect)
public static CCRect PixelsToPoints(this CCRect r)
Parameters
r
CCRect
Returns
PixelsToPoints(CCSize)
public static CCSize PixelsToPoints(this CCSize s)
Parameters
s
CCSize
Returns
PixelsToPoints(CCPoint)
public static CCPoint PixelsToPoints(this CCPoint p)
Parameters
p
CCPoint
Returns
PixelsToPoints(CCRect)
public static CCRect PixelsToPoints(this CCRect r)
Parameters
r
CCRect
Returns
PixelsToPoints(CCSize)
public static CCSize PixelsToPoints(this CCSize s)
Parameters
s
CCSize
Returns
PixelsToPoints(CCPoint)
public static CCPoint PixelsToPoints(this CCPoint p)
Parameters
p
CCPoint
Returns
PixelsToPoints(CCRect)
public static CCRect PixelsToPoints(this CCRect r)
Parameters
r
CCRect
Returns
PixelsToPoints(CCSize)
public static CCSize PixelsToPoints(this CCSize s)
Parameters
s
CCSize
Returns
PixelsToPoints(CCPoint)
public static CCPoint PixelsToPoints(this CCPoint p)
Parameters
p
CCPoint
Returns
PixelsToPoints(CCRect)
public static CCRect PixelsToPoints(this CCRect r)
Parameters
r
CCRect
Returns
PixelsToPoints(CCSize)
public static CCSize PixelsToPoints(this CCSize s)
Parameters
s
CCSize
Returns
PixelsToPoints(CCPoint)
public static CCPoint PixelsToPoints(this CCPoint p)
Parameters
p
CCPoint
Returns
PointsToPixels(CCRect)
public static CCRect PointsToPixels(this CCRect r)
Parameters
r
CCRect
Returns
PointsToPixels(CCSize)
public static CCSize PointsToPixels(this CCSize s)
Parameters
s
CCSize
Returns
PointsToPixels(CCPoint)
public static CCPoint PointsToPixels(this CCPoint p)
Parameters
p
CCPoint
Returns
PointsToPixels(CCRect)
public static CCRect PointsToPixels(this CCRect r)
Parameters
r
CCRect
Returns
PointsToPixels(CCSize)
public static CCSize PointsToPixels(this CCSize s)
Parameters
s
CCSize
Returns
PointsToPixels(CCPoint)
public static CCPoint PointsToPixels(this CCPoint p)
Parameters
p
CCPoint
Returns
PointsToPixels(CCRect)
public static CCRect PointsToPixels(this CCRect r)
Parameters
r
CCRect
Returns
PointsToPixels(CCSize)
public static CCSize PointsToPixels(this CCSize s)
Parameters
s
CCSize
Returns
PointsToPixels(CCPoint)
public static CCPoint PointsToPixels(this CCPoint p)
Parameters
p
CCPoint
Returns
PointsToPixels(CCRect)
public static CCRect PointsToPixels(this CCRect r)
Parameters
r
CCRect
Returns
PointsToPixels(CCSize)
public static CCSize PointsToPixels(this CCSize s)
Parameters
s
CCSize
Returns
PointsToPixels(CCPoint)
public static CCPoint PointsToPixels(this CCPoint p)
Parameters
p
CCPoint
Returns
PointsToPixels(CCRect)
public static CCRect PointsToPixels(this CCRect r)
Parameters
r
CCRect
Returns
PointsToPixels(CCSize)
public static CCSize PointsToPixels(this CCSize s)
Parameters
s
CCSize
Returns
PointsToPixels(CCPoint)
public static CCPoint PointsToPixels(this CCPoint p)
Parameters
p
CCPoint
Returns
PointsToPixels(CCRect)
public static CCRect PointsToPixels(this CCRect r)
Parameters
r
CCRect
Returns
PointsToPixels(CCSize)
public static CCSize PointsToPixels(this CCSize s)
Parameters
s
CCSize
Returns
PointsToPixels(CCPoint)
public static CCPoint PointsToPixels(this CCPoint p)
Parameters
p
CCPoint
Returns
PointsToPixels(CCRect)
public static CCRect PointsToPixels(this CCRect r)
Parameters
r
CCRect
Returns
PointsToPixels(CCSize)
public static CCSize PointsToPixels(this CCSize s)
Parameters
s
CCSize
Returns
PointsToPixels(CCPoint)
public static CCPoint PointsToPixels(this CCPoint p)
Parameters
p
CCPoint
Returns
PointsToPixels(CCRect)
public static CCRect PointsToPixels(this CCRect r)
Parameters
r
CCRect
Returns
PointsToPixels(CCSize)
public static CCSize PointsToPixels(this CCSize s)
Parameters
s
CCSize
Returns
PointsToPixels(CCPoint)
public static CCPoint PointsToPixels(this CCPoint p)
Parameters
p
CCPoint
Returns
PointsToPixels(CCRect)
public static CCRect PointsToPixels(this CCRect r)
Parameters
r
CCRect
Returns
PointsToPixels(CCSize)
public static CCSize PointsToPixels(this CCSize s)
Parameters
s
CCSize
Returns
PointsToPixels(CCPoint)
public static CCPoint PointsToPixels(this CCPoint p)
Parameters
p
CCPoint
Returns
PointsToPixels(CCRect)
public static CCRect PointsToPixels(this CCRect r)
Parameters
r
CCRect
Returns
PointsToPixels(CCSize)
public static CCSize PointsToPixels(this CCSize s)
Parameters
s
CCSize
Returns
PointsToPixels(CCPoint)
public static CCPoint PointsToPixels(this CCPoint p)
Parameters
p
CCPoint
Returns
PointsToPixels(CCRect)
public static CCRect PointsToPixels(this CCRect r)
Parameters
r
CCRect
Returns
PointsToPixels(CCSize)
public static CCSize PointsToPixels(this CCSize s)
Parameters
s
CCSize
Returns
PointsToPixels(CCPoint)
public static CCPoint PointsToPixels(this CCPoint p)
Parameters
p
CCPoint
Returns
PointsToPixels(CCRect)
public static CCRect PointsToPixels(this CCRect r)
Parameters
r
CCRect
Returns
PointsToPixels(CCSize)
public static CCSize PointsToPixels(this CCSize s)
Parameters
s
CCSize
Returns
PointsToPixels(CCPoint)
public static CCPoint PointsToPixels(this CCPoint p)
Parameters
p
CCPoint