Skip to content

Commit

Permalink
Merge pull request kmammou#44 from jratcliff63367/update-float-math
Browse files Browse the repository at this point in the history
Minor revisions to the source and libraries.
  • Loading branch information
kmammou authored Sep 19, 2017
2 parents 610ed0e + 46aacd2 commit 3999e29
Show file tree
Hide file tree
Showing 19 changed files with 255 additions and 904 deletions.
Binary file modified DebugView/ConvexDecomposition.exe
Binary file not shown.
15 changes: 10 additions & 5 deletions DebugView/NvRenderDebug/NvRenderDebug.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,21 @@
/**
\brief This defines the version number of the API. If the API changes in anyway, this version number needs to be bumped.
*/
#define RENDER_DEBUG_VERSION 1009
#define RENDER_DEBUG_VERSION 1010
/**
\brief This defines the version number for the communications layer. If the format or layout of any packets change in a way that will not be backwards compatible, this needs to be bumped
*/
#define RENDER_DEBUG_COMM_VERSION 1009
#define RENDER_DEBUG_COMM_VERSION 1010
/**
\brief The default port number for RenderDebug client/server connections. You can change this if you wish, but you must make sure both your client and server code uses the new port number.
*/
#define RENDER_DEBUG_PORT 5525

namespace nvidia
{
class NvAllocatorCallback;
class NvErrorCallback;
}

namespace RENDER_DEBUG
{
Expand Down Expand Up @@ -897,7 +902,7 @@ class RenderDebug
dllName = "RenderDebug_x86.dll";
versionNumber = RENDER_DEBUG_VERSION;
runMode = RM_LOCAL;
recordFileName = nullptr; //"RenderDebug.rec";
recordFileName = NULL; //"RenderDebug.rec";
errorCode = 0;
echoFileLocally = false;
hostName = "localhost";
Expand Down Expand Up @@ -973,12 +978,12 @@ class RenderDebug
/**
\brief This is an optional callback interface to vector all memory allocations performed back to the application.
*/
void *allocatorCallback;
nvidia::NvAllocatorCallback *allocatorCallback;

/**
\brief This is an optional callback interface to vector all warning and error messages back to the application
*/
void *errorCallback;
nvidia::NvErrorCallback *errorCallback;

/**
\brief This is an optional filename to record all commands received from the remote connection. This is a debugging feature only.
Expand Down
14 changes: 14 additions & 0 deletions DebugView/NvRenderDebug/NvRenderDebugBinding.cpp
Original file line number Diff line number Diff line change
@@ -1,10 +1,20 @@
#include "NvRenderDebug.h"
#include <stdio.h>

#if NV_SIGNED_LIBRARY
#undef NV_SIGNED_LIBRARY
#endif

#ifdef _MSC_VER

#include <windows.h>

#ifdef NV_SIGNED_LIBRARY
#include "nvSecureLoadLibrary.h"
#endif



namespace RENDER_DEBUG
{

Expand All @@ -15,7 +25,11 @@ RENDER_DEBUG::RenderDebug *createRenderDebug(RenderDebug::Desc &desc)
UINT errorMode = 0;
errorMode = SEM_FAILCRITICALERRORS;
UINT oldErrorMode = SetErrorMode(errorMode);
#ifdef NV_SIGNED_LIBRARY
HMODULE module = nvLoadLibraryExA(desc.dllName,0,true);
#else
HMODULE module = LoadLibraryA(desc.dllName);
#endif
SetErrorMode(oldErrorMode);
if ( module )
{
Expand Down
Binary file modified DebugView/NvRenderDebug_x64.dll
Binary file not shown.
8 changes: 8 additions & 0 deletions DebugView/PhysXFramework/NvPhysXFramework.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,14 @@ class PhysXFramework
uint32_t swing2Limit) = 0; // Swing 2 limit in degrees (if used)

virtual bool getXform(float xform[16],uint32_t index) = 0;
virtual bool getConstraintXform(float xform[16], uint32_t constraint) = 0;

// If we are mouse dragging and the currently selected object is an actor in this compound
// system, then return true and assign 'bodyIndex' to the index number of the body selected.
virtual bool getSelectedBody(uint32_t &bodyIndex) = 0;

// Sets the collision filter pairs.
virtual void setCollisionFilterPairs(uint32_t pairCount, const uint32_t *collisionPairs) = 0;

virtual void release(void) = 0;
};
Expand Down
Binary file modified DebugView/PhysXFramework64.dll
Binary file not shown.
Loading

0 comments on commit 3999e29

Please sign in to comment.