소스 검색

Added some comments and fixed spaces

pull/70/head
victorfisac 9 년 전
부모
커밋
fe0cf8f9a9
5개의 변경된 파일7개의 추가작업 그리고 6개의 파일을 삭제
  1. +1
    -0
      src/core.c
  2. +1
    -1
      src/physac.c
  3. +1
    -1
      src/physac.h
  4. +2
    -2
      src/raylib.h
  5. +2
    -2
      templates/android_project/jni/include/raylib.h

+ 1
- 0
src/core.c 파일 보기

@ -1111,6 +1111,7 @@ Vector2 GetTouchPosition(void)
return position;
}
// Detect if a button has been pressed once
bool IsButtonPressed(int button)
{
bool pressed = false;

+ 1
- 1
src/physac.c 파일 보기

@ -61,7 +61,7 @@ static Vector2 Vector2Normalize(Vector2 vector);
//----------------------------------------------------------------------------------
// Module Functions Definitions
//----------------------------------------------------------------------------------
void InitPhysics()
void InitPhysics(kt">void)
{
for (int i = 0; i < MAX_ELEMENTS; i++)
{

+ 1
- 1
src/physac.h 파일 보기

@ -76,7 +76,7 @@ extern "C" { // Prevents name mangling of functions
//----------------------------------------------------------------------------------
// Module Functions Declarations
//----------------------------------------------------------------------------------
void InitPhysics(); // Initialize all internal physics values
void InitPhysics(kt">void); // Initialize all internal physics values
void SetPhysics(Physics settings); // Set physics settings values using Physics data type to overwrite internal physics settings
void AddRigidbody(int index, Rigidbody rigidbody); // Initialize a new rigidbody with parameters to internal index slot

+ 2
- 2
src/raylib.h 파일 보기

@ -589,7 +589,7 @@ int GetTouchY(void); // Returns touch positio
Vector2 GetTouchPosition(void); // Returns touch position XY (relative to screen size)
bool IsButtonPressed(int button); // Detect if an android physic button has been pressed
bool IsButtonDown(int button); // Detect if an android physic button is being pressed
bool IsButtonReleased(int button); // Detect if an android physic button has been released
bool IsButtonReleased(int button); // Detect if an android physic button has been released
//------------------------------------------------------------------------------------
// Gestures and Touch Handling Functions (Module: gestures)
@ -805,7 +805,7 @@ void SetMaterialNormalDepth(Material *material, float depth); // Set n
//----------------------------------------------------------------------------------
// Physics System Functions (engine-module: physics)
//----------------------------------------------------------------------------------
void InitPhysics(); // Initialize all internal physics values
void InitPhysics(kt">void); // Initialize all internal physics values
void SetPhysics(Physics settings); // Set physics settings values using Physics data type to overwrite internal physics settings
void AddRigidbody(int index, Rigidbody rigidbody); // Initialize a new rigidbody with parameters to internal index slot

+ 2
- 2
templates/android_project/jni/include/raylib.h 파일 보기

@ -589,7 +589,7 @@ int GetTouchY(void); // Returns touch positio
Vector2 GetTouchPosition(void); // Returns touch position XY (relative to screen size)
bool IsButtonPressed(int button); // Detect if an android physic button has been pressed
bool IsButtonDown(int button); // Detect if an android physic button is being pressed
bool IsButtonReleased(int button); // Detect if an android physic button has been released
bool IsButtonReleased(int button); // Detect if an android physic button has been released
//------------------------------------------------------------------------------------
// Gestures and Touch Handling Functions (Module: gestures)
@ -805,7 +805,7 @@ void SetMaterialNormalDepth(Material *material, float depth); // Set n
//----------------------------------------------------------------------------------
// Physics System Functions (engine-module: physics)
//----------------------------------------------------------------------------------
void InitPhysics(); // Initialize all internal physics values
void InitPhysics(kt">void); // Initialize all internal physics values
void SetPhysics(Physics settings); // Set physics settings values using Physics data type to overwrite internal physics settings
void AddRigidbody(int index, Rigidbody rigidbody); // Initialize a new rigidbody with parameters to internal index slot

불러오는 중...
취소
저장