Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ZhouWeikuan/cocos2d
/ functions
Functions
6,824 in github.com/ZhouWeikuan/cocos2d
⨍
Functions
6,824
◇
Types & classes
1,288
↓ 36 callers
Method
getWorldPoint
Get the world coordinates of a point given the local coordinates. @param localPoint a point on the body measured relative the the body's origin. @retu
JBox2D_2.0.1/src/org/jbox2d/dynamics/Body.java:576
↓ 36 callers
Method
glEnableClientState
(int array)
cocos2d-android/src/org/cocos2d/opengl/GLDebugWrapper.java:189
↓ 35 callers
Method
clone
()
JBox2D_2.0.1/src/org/jbox2d/common/Vec2.java:157
↓ 35 callers
Method
copy
()
cocos2d-android/src/org/cocos2d/types/Copyable.java:4
↓ 35 callers
Method
glDisableClientState
(int array)
cocos2d-android/src/org/cocos2d/opengl/GLDebugWrapper.java:169
↓ 35 callers
Method
length
Returns the length (character count) of this text builder. @return the number of characters (16-bits Unicode).
cocos2d-android/src/org/cocos2d/utils/javolution/TextBuilder.java:93
↓ 35 callers
Method
sin
Returns the trigonometric sine of the specified angle in radians. @param radians the angle in radians. @return <code>java.lang.Math.sin(radians)</cod
cocos2d-android/src/org/cocos2d/utils/javolution/MathLib.java:807
↓ 34 callers
Function
RandomFloat
Random number in range [-1,1]
cocos2d-iphone/external/Box2d/Testbed/Framework/Test.h:35
↓ 34 callers
Method
getBody
Get the parent body of this shape. This is NULL if the shape is not attached. @return the parent body.
JBox2D_2.0.1/src/org/jbox2d/collision/Shape.java:152
↓ 34 callers
Function
png_crc_read
Read data, and (optionally) run it through the CRC. */
cocos2d-iphone/external/libpng/pngrutil.c:138
↓ 34 callers
Function
png_malloc_warn
This function was added at libpng version 1.2.3. The png_malloc_warn() * function will set up png_malloc() to issue a png_warning and return NULL *
cocos2d-iphone/external/libpng/pngmem.c:570
↓ 34 callers
Method
removeChild
(CCNode child, boolean cleanup)
cocos2d-android/src/org/cocos2d/nodes/CCNode.java:605
↓ 33 callers
Method
getTexture
returns the used texture
cocos2d-android/src/org/cocos2d/protocols/CCTextureProtocol.java:17
↓ 33 callers
Method
mul
Multiplies this vector by a scalar @param scalar The scalar @return This vector for chaining
cocos2d-android/src/com/badlogic/gdx/math/Vector2.java:141
↓ 32 callers
Method
min
Returns the smaller of two <code>int</code> values. @param x the first value. @param y the second value. @return the smaller of <code>x</code> and <c
cocos2d-android/src/org/cocos2d/utils/javolution/MathLib.java:1117
↓ 32 callers
Method
sub
Substracts the given vector from this vector. @param v The vector @return This vector for chaining
cocos2d-android/src/com/badlogic/gdx/math/Vector2.java:96
↓ 31 callers
Method
addLocal
Add another vector to this one and return result - alters this vector.
JBox2D_2.0.1/src/org/jbox2d/common/Vec2.java:102
↓ 31 callers
Method
createJoint
Create a joint to constrain bodies together. No reference to the definition is retained. This may cause the connected bodies to cease colliding. <BR><
JBox2D_2.0.1/src/org/jbox2d/dynamics/World.java:320
↓ 31 callers
Method
getParent
A weak reference to the parent
cocos2d-android/src/org/cocos2d/nodes/CCNode.java:403
↓ 31 callers
Method
onEnter
()
cocos2d-android/src/org/cocos2d/tests/ParticleTest.java:394
↓ 31 callers
Method
setTexture
sets a new texture. it will be retained
cocos2d-android/src/org/cocos2d/protocols/CCTextureProtocol.java:20
↓ 30 callers
Method
max
(Vec2 a, Vec2 b)
JBox2D_2.0.1/src/org/jbox2d/common/Vec2.java:196
↓ 29 callers
Method
action
creates the action with the callback
cocos2d-android/src/org/cocos2d/actions/instant/CCCallFunc.java:23
↓ 29 callers
Method
action
creates the action
cocos2d-android/src/org/cocos2d/actions/interval/CCRotateBy.java:17
↓ 29 callers
Function
cpvcross
cocos2d-iphone/external/Chipmunk/include/chipmunk/cpVect.h:69
↓ 29 callers
Function
png_push_save_buffer
cocos2d-iphone/external/libpng/pngpread.c:672
↓ 29 callers
Method
set
Set this as an isolated edge.
cocos2d-android/src/com/badlogic/gdx/physics/box2d/EdgeShape.java:26
↓ 29 callers
Method
set
Sets the given bounding box. @param bounds The bounds. @return This bounding box for chaining.
cocos2d-android/src/com/badlogic/gdx/math/collision/BoundingBox.java:111
↓ 28 callers
Method
format
(String s, Object... objects)
cocos2d-android/src/org/cocos2d/utils/CCFormatter.java:9
↓ 28 callers
Method
mul
(XForm T, Vec2 v)
JBox2D_2.0.1/src/org/jbox2d/common/XForm.java:75
↓ 28 callers
Method
random
Returns a pseudo random <code>int</code> value in the range <code>[min, max]</code> (fast and thread-safe without synchronization). @param min the mi
cocos2d-android/src/org/cocos2d/utils/javolution/MathLib.java:39
↓ 27 callers
Method
action
creates a CCOrbitCamera action with radius, delta-radius, z, deltaZ, x, deltaX
cocos2d-android/src/org/cocos2d/actions/camera/CCOrbitCamera.java:24
↓ 27 callers
Function
b2Max
cocos2d-iphone/external/Box2d/Box2D/Common/b2Math.h:550
↓ 27 callers
Method
close
Flushes and closes (I think, in the superclass) the stream. @since 1.3
cocos2d-android/src/org/cocos2d/utils/Base64.java:2020
↓ 27 callers
Method
getXForm
Get a copy of the body transform for the body's origin. @return the world transform of the body's origin.
JBox2D_2.0.1/src/org/jbox2d/dynamics/Body.java:452
↓ 27 callers
Method
menu
creates a menu with its items
cocos2d-android/src/org/cocos2d/menus/CCMenu.java:59
↓ 26 callers
Method
Length
Get the length of this vector (the norm).
cocos2d-iphone/external/Box2d/Box2D/Common/b2Math.h:117
↓ 26 callers
Function
XPROD31
cocos2d-iphone/external/Tremor/misc.h:141
↓ 26 callers
Method
ccpSub
Calculates difference of two points. @return CCPoint
cocos2d-android/src/org/cocos2d/types/CGPoint.java:90
↓ 26 callers
Method
max
(float a, float b)
cocos2d-android/src/com/badlogic/gdx/math/collision/BoundingBox.java:267
↓ 26 callers
Function
png_save_uint_32
Place a 32-bit number into a buffer in PNG byte order. We work * with unsigned numbers for convenience, although one supported * ancillary chunk us
cocos2d-iphone/external/libpng/pngwutil.c:23
↓ 26 callers
Method
read
Reads enough of the input stream to convert to/from Base64 and returns the next byte. @return next byte @since 1.3
cocos2d-android/src/org/cocos2d/utils/Base64.java:1705
↓ 26 callers
Method
sin
(float rad)
cocos2d-android/src/com/badlogic/gdx/math/MathUtils.java:56
↓ 25 callers
Method
Free
cocos2d-iphone/external/Box2d/Box2D/Common/b2StackAllocator.cpp:61
↓ 25 callers
Method
append
Appends the specified character. @param c the character to append. @return <code>this</code>
cocos2d-android/src/org/cocos2d/utils/javolution/TextBuilder.java:207
↓ 25 callers
Function
b2Abs
cocos2d-iphone/external/Box2d/Box2D/Common/b2Math.h:63
↓ 25 callers
Method
onEnter
()
cocos2d-android/src/org/cocos2d/tests/ActionsTest.java:369
↓ 25 callers
Function
png_write_chunk
Write a PNG chunk all at once. The type is an array of ASCII characters * representing the chunk name. The array must be at least 4 bytes in * len
cocos2d-iphone/external/libpng/pngwutil.c:83
↓ 25 callers
Method
runWithScene
Enters the Director's main loop with the given CCScene. Call it to run only your FIRST CCScene. Don't call it if there is already a running CCScene.
cocos2d-android/src/org/cocos2d/nodes/CCDirector.java:1113
↓ 25 callers
Method
setAnimationInterval
(double interval)
cocos2d-android/src/org/cocos2d/nodes/CCDirector.java:455
↓ 24 callers
Method
Allocate
cocos2d-iphone/external/Box2d/Box2D/Common/b2StackAllocator.cpp:36
↓ 24 callers
Method
attachInView
attach in UIView using the full frame. It will create a EAGLView. deprecated set setOpenGLView instead. Will be removed in v1.0
cocos2d-android/src/org/cocos2d/nodes/CCDirector.java:831
↓ 24 callers
Function
b2Clamp
cocos2d-iphone/external/Box2d/Box2D/Common/b2Math.h:561
↓ 24 callers
Method
ccc4
(final int r, final int g, final int b, final int a)
cocos2d-android/src/org/cocos2d/types/ccColor4B.java:30
↓ 24 callers
Method
end
Ends the execution, releases the running CCScene. It doesn't remove the OpenGL view from its parent. You have to do it manually.
cocos2d-android/src/org/cocos2d/nodes/CCDirector.java:1182
↓ 24 callers
Method
glBlendFunc
(int sfactor, int dfactor)
cocos2d-android/src/org/cocos2d/opengl/GLDebugWrapper.java:49
↓ 24 callers
Function
png_write_chunk_data
Write the data of a PNG chunk started with png_write_chunk_start(). * Note that multiple calls to this function are allowed, and that the * sum of t
cocos2d-iphone/external/libpng/pngwutil.c:127
↓ 24 callers
Method
set
Sets the vector to the given components @param x The x-component @param y The y-component @param z The z-component @return this vector for chaining
cocos2d-android/src/com/badlogic/gdx/math/Vector3.java:76
↓ 23 callers
Method
DrawSegment
cocos2d-iphone/external/Box2d/Testbed/Framework/Render.cpp:113
↓ 23 callers
Method
GetType
cocos2d-iphone/external/Box2d/Box2D/Dynamics/b2Body.h:445
↓ 23 callers
Method
Normalize
Normalize an angle in radians to be between -pi and pi
cocos2d-iphone/external/Box2d/Box2D/Common/b2Math.h:616
↓ 23 callers
Method
SynchronizeTransform
cocos2d-iphone/external/Box2d/Box2D/Dynamics/b2Body.h:777
↓ 23 callers
Method
ccc3
(final int r, final int g, final int b)
cocos2d-android/src/org/cocos2d/types/ccColor3B.java:57
↓ 23 callers
Method
cos
Returns the trigonometric cosine of the specified angle in radians. @param radians the angle in radians. @return <code>java.lang.Math.cos(radians)</c
cocos2d-android/src/org/cocos2d/utils/javolution/MathLib.java:818
↓ 23 callers
Method
dot
@param v The other vector @return The dot product between this and the other vector
cocos2d-android/src/com/badlogic/gdx/math/Vector2.java:134
↓ 23 callers
Method
getChildren
()
cocos2d-android/src/org/cocos2d/nodes/CCNode.java:459
↓ 23 callers
Method
setDisplayFPS
(boolean value)
cocos2d-android/src/org/cocos2d/nodes/CCDirector.java:470
↓ 23 callers
Method
setOpacity
sets the opacity. @warning If the the texture has premultiplied alpha then, the R, G and B channels will be modifed. Values goes from 0 to 2
cocos2d-android/src/org/cocos2d/protocols/CCRGBAProtocol.java:25
↓ 23 callers
Method
write
Writes the byte to the output stream after converting to/from Base64 notation. When encoding, bytes are buffered three at a time before the output str
cocos2d-android/src/org/cocos2d/utils/Base64.java:1924
↓ 22 callers
Method
CCRANDOM_MINUS1_1
@def CCRANDOM_MINUS1_1 returns a random float between -1 and 1
cocos2d-android/src/org/cocos2d/config/ccMacros.java:61
↓ 22 callers
Method
GetShape
cocos2d-iphone/external/Box2d/Box2D/Dynamics/b2Fixture.h:225
↓ 22 callers
Method
ccpAdd
Calculates sum of two points. @return CCPoint
cocos2d-android/src/org/cocos2d/types/CGPoint.java:81
↓ 22 callers
Method
mul
Return this vector multiplied by a scalar; does not alter this vector.
JBox2D_2.0.1/src/org/jbox2d/common/Vec2.java:85
↓ 22 callers
Function
png_save_uint_16
Place a 16-bit number into a buffer in PNG byte order. * The parameter is declared unsigned int, not png_uint_16, * just to avoid potential problems
cocos2d-iphone/external/libpng/pngwutil.c:49
↓ 22 callers
Method
registerExample
Register an AbstractExample to the current list of examples.
JBox2D_2.0.1/src/org/jbox2d/testbed/TestbedMain.java:356
↓ 22 callers
Method
set
Sets the matrix to the given matrix. @param matrix The matrix @return This matrix for chaining
cocos2d-android/src/com/badlogic/gdx/math/Matrix4.java:78
↓ 22 callers
Method
setFontName
set the font name
cocos2d-android/src/org/cocos2d/menus/CCMenuItemFont.java:26
↓ 22 callers
Method
setFontSize
set font size
cocos2d-android/src/org/cocos2d/menus/CCMenuItemFont.java:16
↓ 22 callers
Method
wakeUp
Wake up this body so it will begin simulating.
JBox2D_2.0.1/src/org/jbox2d/dynamics/Body.java:655
↓ 21 callers
Method
Set
cocos2d-iphone/external/Box2d/Box2D/Collision/Shapes/b2PolygonShape.cpp:132
↓ 21 callers
Function
b2MulT
Multiply a matrix transpose times a vector. If a rotation matrix is provided, then this transforms the vector from one frame to another (inverse trans
cocos2d-iphone/external/Box2d/Box2D/Common/b2Math.h:422
↓ 21 callers
Method
drawString
(float x, float y, String s, Color3f color)
JBox2D_2.0.1/src/org/jbox2d/testbed/ProcessingDebugDraw.java:223
↓ 21 callers
Method
isStatic
Is this body static (immovable)?
JBox2D_2.0.1/src/org/jbox2d/dynamics/Body.java:625
↓ 21 callers
Method
min
(float a, float b)
cocos2d-android/src/com/badlogic/gdx/math/collision/BoundingBox.java:263
↓ 21 callers
Method
synchronizeTransform
For internal use only.
JBox2D_2.0.1/src/org/jbox2d/dynamics/Body.java:731
↓ 21 callers
Method
tiledMap
creates a TMX Tiled Map with a TMX file.
cocos2d-android/src/org/cocos2d/layers/CCTMXTiledMap.java:114
↓ 21 callers
Method
unschedule
(String selector)
cocos2d-android/src/org/cocos2d/nodes/CCNode.java:967
↓ 20 callers
Method
clamp
Returns the closest value to 'a' that is in between 'low' and 'high'
JBox2D_2.0.1/src/org/jbox2d/common/MathUtils.java:43
↓ 20 callers
Method
clone
()
JBox2D_2.0.1/src/org/jbox2d/collision/OBB.java:56
↓ 20 callers
Method
clone
()
JBox2D_2.0.1/src/org/jbox2d/dynamics/contacts/Contact.java:259
↓ 20 callers
Method
cos
(float rad)
cocos2d-android/src/com/badlogic/gdx/math/MathUtils.java:60
↓ 20 callers
Method
getLinearVelocityFromLocalPoint
Get the world velocity of a local point. @param localPoint a point in local coordinates. @return the world velocity of a point.
JBox2D_2.0.1/src/org/jbox2d/dynamics/Body.java:778
↓ 20 callers
Method
getPosition
Position (x,y) of the node in OpenGL coordinates. (0,0) is the left-bottom corner.
cocos2d-android/src/org/cocos2d/nodes/CCNode.java:337
↓ 20 callers
Method
glDisable
(int cap)
cocos2d-android/src/org/cocos2d/opengl/GLDebugWrapper.java:164
↓ 20 callers
Method
originalVertex
returns the non-transformed vertex than belongs to certain position in the grid
cocos2d-android/src/org/cocos2d/actions/grid/CCGrid3DAction.java:34
↓ 20 callers
Function
png_composite
cocos2d-iphone/external/libpng/png.h:2704
↓ 20 callers
Function
png_get_uint_16
Grab an unsigned 16-bit integer from a buffer in big-endian format. */
cocos2d-iphone/external/libpng/pngrutil.c:98
↓ 20 callers
Method
setLandscape
(boolean on)
cocos2d-android/src/org/cocos2d/nodes/CCDirector.java:776
↓ 20 callers
Method
setScale
The scale factor of the node. 1.0 is the default scale factor. It modifies the X and Y scale at the same time.
cocos2d-android/src/org/cocos2d/nodes/CCNode.java:156
↓ 19 callers
Method
bitmapFontAtlas
creates a bitmap font altas with an initial string and the FNT file
cocos2d-android/src/org/cocos2d/opengl/CCBitmapFontAtlas.java:490
← previous
next →
101–200 of 6,824, ranked by callers