Skip to content
This repository has been archived by the owner on Oct 31, 2021. It is now read-only.

Commit

Permalink
removed old docs and changed c++-style comments
Browse files Browse the repository at this point in the history
  • Loading branch information
aidinabedi committed Dec 26, 2009
1 parent bd60055 commit a8d41b2
Show file tree
Hide file tree
Showing 30 changed files with 242 additions and 1,806 deletions.
6 changes: 3 additions & 3 deletions Samples/Advanced/Advanced.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ THE SOFTWARE.
#include "Shared.h"


//-----------------------------------------------------------------------------
/*---------------------------------------------------------------------------*/

PROFILE_SHARED_DEFINE(Math);

Expand All @@ -38,7 +38,7 @@ void DoSomeMath() {
}


//-----------------------------------------------------------------------------
/*---------------------------------------------------------------------------*/

void Recursion(int calls_left) {
PROFILE_FUNC(); // begin profile until end of block
Expand All @@ -49,7 +49,7 @@ void Recursion(int calls_left) {
}


//-----------------------------------------------------------------------------
/*---------------------------------------------------------------------------*/

void ExecuteCommand(const char *command) {

Expand Down
6 changes: 3 additions & 3 deletions Samples/Advanced/Main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ THE SOFTWARE.
#include "Shared.h"


//-----------------------------------------------------------------------------
/*---------------------------------------------------------------------------*/

void millisleep(unsigned int milliseconds) {
#ifdef _WIN32
Expand All @@ -44,7 +44,7 @@ void millisleep(unsigned int milliseconds) {
}


//-----------------------------------------------------------------------------
/*---------------------------------------------------------------------------*/

void YetMoreMath() {
PROFILE_SHARED_BLOCK(Math); // profile until end of block (only supported in c++)
Expand All @@ -53,7 +53,7 @@ void YetMoreMath() {
}


//-----------------------------------------------------------------------------
/*---------------------------------------------------------------------------*/

int main() {

Expand Down
6 changes: 3 additions & 3 deletions Samples/Advanced/Shared.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ THE SOFTWARE.
#include "Shiny.h"


//-----------------------------------------------------------------------------
/*---------------------------------------------------------------------------*/

PROFILE_SHARED_EXTERN(Math);


//-----------------------------------------------------------------------------
/*---------------------------------------------------------------------------*/

void DoSomeMath();

Expand All @@ -39,6 +39,6 @@ void Recursion(int calls_left);
void ExecuteCommand(const char *command);


//-----------------------------------------------------------------------------
/*---------------------------------------------------------------------------*/

void millisleep(unsigned int milliseconds);
10 changes: 5 additions & 5 deletions Samples/MainLoop/MainLoop.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ THE SOFTWARE.
#endif


//-----------------------------------------------------------------------------
/*---------------------------------------------------------------------------*/

void millisleep(unsigned int milliseconds) {
#ifdef _WIN32
Expand All @@ -42,7 +42,7 @@ void millisleep(unsigned int milliseconds) {
}


//-----------------------------------------------------------------------------
/*---------------------------------------------------------------------------*/

PROFILE_SHARED_DEFINE(Physics);

Expand All @@ -61,7 +61,7 @@ void CheckPhysicsRaycast() {
}


//-----------------------------------------------------------------------------
/*---------------------------------------------------------------------------*/

PROFILE_SHARED_DEFINE(Animations);

Expand All @@ -88,7 +88,7 @@ void UpdateAllCharacters() {
}


//-----------------------------------------------------------------------------
/*---------------------------------------------------------------------------*/

void DrawWorldObjects() {
for (int i = 0; i < 10; i++) {
Expand All @@ -99,7 +99,7 @@ void DrawWorldObjects() {
}


//-----------------------------------------------------------------------------
/*---------------------------------------------------------------------------*/


int main() {
Expand Down
8 changes: 4 additions & 4 deletions Samples/Simple/Simple.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ THE SOFTWARE.
#endif


//-----------------------------------------------------------------------------
/*---------------------------------------------------------------------------*/

void millisleep(unsigned int milliseconds) {
#ifdef _WIN32
Expand All @@ -42,7 +42,7 @@ void millisleep(unsigned int milliseconds) {
}


//-----------------------------------------------------------------------------
/*---------------------------------------------------------------------------*/

void LazyHelloWorld(void) {
PROFILE_FUNC(); // profile until end of block (only supported in c++)
Expand All @@ -51,7 +51,7 @@ void LazyHelloWorld(void) {
}


//-----------------------------------------------------------------------------
/*---------------------------------------------------------------------------*/

void HelloWorld(void) {
PROFILE_BEGIN(Hello_World__This_is_Shiny); // profile until PROFILE_END()
Expand All @@ -62,7 +62,7 @@ void HelloWorld(void) {
}


//-----------------------------------------------------------------------------
/*---------------------------------------------------------------------------*/

int main() {

Expand Down
3 changes: 0 additions & 3 deletions Shiny/doc/RunMe.bat

This file was deleted.

3 changes: 0 additions & 3 deletions Shiny/doc/RunMe.sh

This file was deleted.

Loading

0 comments on commit a8d41b2

Please sign in to comment.