Draw sleep velocity (#49)
- draw sleep velocity for debugging - added back shape names with B3_SHAPE_NAME_LENGTH - zup command line option
This commit is contained in:
parent
0f6fdad541
commit
540ea387b0
28 changed files with 554 additions and 132 deletions
19
src/core.c
19
src/core.c
|
|
@ -295,6 +295,25 @@ int b3FetchAddMeshDumpIndex( void )
|
|||
return result;
|
||||
}
|
||||
|
||||
void b3StrCpy(char* dst, int size, const char* src)
|
||||
{
|
||||
B3_ASSERT( size > 0 );
|
||||
|
||||
if ( src != NULL )
|
||||
{
|
||||
#if defined( _MSC_VER )
|
||||
strncpy_s( dst, size, src, size - 1 );
|
||||
#else
|
||||
strncpy( dst, src, size - 1 );
|
||||
dst[size - 1] = 0;
|
||||
#endif
|
||||
}
|
||||
else
|
||||
{
|
||||
memset( dst, 0, size );
|
||||
}
|
||||
}
|
||||
|
||||
void b3WriteBinaryFile( void* data, int size, const char* fileName )
|
||||
{
|
||||
if ( data == NULL || size <= 0 || fileName == NULL )
|
||||
|
|
|
|||
Loading…
Reference in a new issue