mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-29 16:25:42 +00:00
Fixes for dedicated build on linux.
Thx @Bloodknigh for Signal fix.
This commit is contained in:
parent
ef4e7ec975
commit
6450294855
8 changed files with 22 additions and 19 deletions
|
|
@ -149,7 +149,7 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
friend class SignalSig;
|
friend class SignalBaseT< Signature >;
|
||||||
|
|
||||||
void _setSignal(SignalSig *sig)
|
void _setSignal(SignalSig *sig)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -55,7 +55,7 @@ void AdvancedLightingFeatures::registerFeatures( const GFXFormat &prepassTargetF
|
||||||
if(GFX->getAdapterType() == OpenGL)
|
if(GFX->getAdapterType() == OpenGL)
|
||||||
{
|
{
|
||||||
#if defined( TORQUE_OS_MAC ) || defined( TORQUE_OS_LINUX )
|
#if defined( TORQUE_OS_MAC ) || defined( TORQUE_OS_LINUX )
|
||||||
cond = new GBufferConditionerGLSL( prepassTargetFormat );
|
cond = new GBufferConditionerGLSL( prepassTargetFormat, GBufferConditionerGLSL::ViewSpace );
|
||||||
FEATUREMGR->registerFeature(MFT_PrePassConditioner, cond);
|
FEATUREMGR->registerFeature(MFT_PrePassConditioner, cond);
|
||||||
FEATUREMGR->registerFeature(MFT_RTLighting, new DeferredRTLightingFeatGLSL());
|
FEATUREMGR->registerFeature(MFT_RTLighting, new DeferredRTLightingFeatGLSL());
|
||||||
FEATUREMGR->registerFeature(MFT_NormalMap, new DeferredBumpFeatGLSL());
|
FEATUREMGR->registerFeature(MFT_NormalMap, new DeferredBumpFeatGLSL());
|
||||||
|
|
|
||||||
|
|
@ -41,6 +41,7 @@ enum RegisterType
|
||||||
RT_NORMAL,
|
RT_NORMAL,
|
||||||
RT_BINORMAL,
|
RT_BINORMAL,
|
||||||
RT_TANGENT,
|
RT_TANGENT,
|
||||||
|
RT_TANGENTW,
|
||||||
RT_COLOR,
|
RT_COLOR,
|
||||||
RT_TEXCOORD,
|
RT_TEXCOORD,
|
||||||
RT_VPOS,
|
RT_VPOS,
|
||||||
|
|
|
||||||
|
|
@ -60,7 +60,7 @@ typedef unsigned long long U64;
|
||||||
# define TORQUE_OS_WIN
|
# define TORQUE_OS_WIN
|
||||||
# define TORQUE_OS_WIN64
|
# define TORQUE_OS_WIN64
|
||||||
# include "platform/types.win.h"
|
# include "platform/types.win.h"
|
||||||
#if defined(__WIN32__) || defined(_WIN32)
|
#elif defined(__WIN32__) || defined(_WIN32)
|
||||||
# define TORQUE_OS_STRING "Win32"
|
# define TORQUE_OS_STRING "Win32"
|
||||||
# define TORQUE_OS_WIN
|
# define TORQUE_OS_WIN
|
||||||
# define TORQUE_OS_WIN32
|
# define TORQUE_OS_WIN32
|
||||||
|
|
|
||||||
|
|
@ -251,7 +251,7 @@ Path PosixFile::getName() const
|
||||||
return _path;
|
return _path;
|
||||||
}
|
}
|
||||||
|
|
||||||
FileNode::Status PosixFile::getStatus() const
|
FileNode::NodeStatus PosixFile::getStatus() const
|
||||||
{
|
{
|
||||||
return _status;
|
return _status;
|
||||||
}
|
}
|
||||||
|
|
@ -536,7 +536,7 @@ bool PosixDirectory::getAttributes(Attributes* attr)
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
FileNode::Status PosixDirectory::getStatus() const
|
FileNode::NodeStatus PosixDirectory::getStatus() const
|
||||||
{
|
{
|
||||||
return _status;
|
return _status;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -68,7 +68,7 @@ class PosixFile: public File
|
||||||
Path _path;
|
Path _path;
|
||||||
String _name;
|
String _name;
|
||||||
FILE* _handle;
|
FILE* _handle;
|
||||||
Status _status;
|
NodeStatus _status;
|
||||||
|
|
||||||
PosixFile(const Path& path,String name);
|
PosixFile(const Path& path,String name);
|
||||||
bool _updateInfo();
|
bool _updateInfo();
|
||||||
|
|
@ -78,7 +78,7 @@ public:
|
||||||
~PosixFile();
|
~PosixFile();
|
||||||
|
|
||||||
Path getName() const;
|
Path getName() const;
|
||||||
Status getStatus() const;
|
NodeStatus getStatus() const;
|
||||||
bool getAttributes(Attributes*);
|
bool getAttributes(Attributes*);
|
||||||
|
|
||||||
U32 getPosition();
|
U32 getPosition();
|
||||||
|
|
@ -103,7 +103,7 @@ class PosixDirectory: public Directory
|
||||||
Path _path;
|
Path _path;
|
||||||
String _name;
|
String _name;
|
||||||
DIR* _handle;
|
DIR* _handle;
|
||||||
Status _status;
|
NodeStatus _status;
|
||||||
|
|
||||||
PosixDirectory(const Path& path,String name);
|
PosixDirectory(const Path& path,String name);
|
||||||
void _updateStatus();
|
void _updateStatus();
|
||||||
|
|
@ -112,7 +112,7 @@ public:
|
||||||
~PosixDirectory();
|
~PosixDirectory();
|
||||||
|
|
||||||
Path getName() const;
|
Path getName() const;
|
||||||
Status getStatus() const;
|
NodeStatus getStatus() const;
|
||||||
bool getAttributes(Attributes*);
|
bool getAttributes(Attributes*);
|
||||||
|
|
||||||
bool open();
|
bool open();
|
||||||
|
|
|
||||||
|
|
@ -469,7 +469,7 @@ bool dPathCopy(const char *fromName, const char *toName, bool nooverwrite)
|
||||||
// Sets capability appropriate to the openMode.
|
// Sets capability appropriate to the openMode.
|
||||||
// Returns the currentStatus of the file.
|
// Returns the currentStatus of the file.
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
File::Status File::open(const char *filename, const AccessMode openMode)
|
File::FileStatus File::open(const char *filename, const AccessMode openMode)
|
||||||
{
|
{
|
||||||
AssertFatal(NULL != filename, "File::open: NULL filename");
|
AssertFatal(NULL != filename, "File::open: NULL filename");
|
||||||
AssertWarn(NULL == handle, "File::open: handle already valid");
|
AssertWarn(NULL == handle, "File::open: handle already valid");
|
||||||
|
|
@ -584,7 +584,7 @@ bool dPathCopy(const char *fromName, const char *toName, bool nooverwrite)
|
||||||
//
|
//
|
||||||
// Returns the currentStatus of the file.
|
// Returns the currentStatus of the file.
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
File::Status File::setPosition(S32 position, bool absolutePos)
|
File::FileStatus File::setPosition(S32 position, bool absolutePos)
|
||||||
{
|
{
|
||||||
AssertFatal(Closed != currentStatus, "File::setPosition: file closed");
|
AssertFatal(Closed != currentStatus, "File::setPosition: file closed");
|
||||||
AssertFatal(NULL != handle, "File::setPosition: invalid file handle");
|
AssertFatal(NULL != handle, "File::setPosition: invalid file handle");
|
||||||
|
|
@ -645,7 +645,7 @@ bool dPathCopy(const char *fromName, const char *toName, bool nooverwrite)
|
||||||
// It is an error to flush a read-only file.
|
// It is an error to flush a read-only file.
|
||||||
// Returns the currentStatus of the file.
|
// Returns the currentStatus of the file.
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
File::Status File::flush()
|
File::FileStatus File::flush()
|
||||||
{
|
{
|
||||||
AssertFatal(Closed != currentStatus, "File::flush: file closed");
|
AssertFatal(Closed != currentStatus, "File::flush: file closed");
|
||||||
AssertFatal(NULL != handle, "File::flush: invalid file handle");
|
AssertFatal(NULL != handle, "File::flush: invalid file handle");
|
||||||
|
|
@ -662,7 +662,7 @@ bool dPathCopy(const char *fromName, const char *toName, bool nooverwrite)
|
||||||
//
|
//
|
||||||
// Returns the currentStatus
|
// Returns the currentStatus
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
File::Status File::close()
|
File::FileStatus File::close()
|
||||||
{
|
{
|
||||||
// if the handle is non-NULL, close it if necessary and free it
|
// if the handle is non-NULL, close it if necessary and free it
|
||||||
if (NULL != handle)
|
if (NULL != handle)
|
||||||
|
|
@ -684,7 +684,7 @@ bool dPathCopy(const char *fromName, const char *toName, bool nooverwrite)
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
// Self-explanatory.
|
// Self-explanatory.
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
File::Status File::getStatus() const
|
File::FileStatus File::getStatus() const
|
||||||
{
|
{
|
||||||
return currentStatus;
|
return currentStatus;
|
||||||
}
|
}
|
||||||
|
|
@ -692,7 +692,7 @@ bool dPathCopy(const char *fromName, const char *toName, bool nooverwrite)
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
// Sets and returns the currentStatus when an error has been encountered.
|
// Sets and returns the currentStatus when an error has been encountered.
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
File::Status File::setStatus()
|
File::FileStatus File::setStatus()
|
||||||
{
|
{
|
||||||
Con::printf("File IO error: %s", strerror(errno));
|
Con::printf("File IO error: %s", strerror(errno));
|
||||||
return currentStatus = IOError;
|
return currentStatus = IOError;
|
||||||
|
|
@ -701,7 +701,7 @@ bool dPathCopy(const char *fromName, const char *toName, bool nooverwrite)
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
// Sets and returns the currentStatus to status.
|
// Sets and returns the currentStatus to status.
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
File::Status File::setStatus(File::Status status)
|
File::FileStatus File::setStatus(File::FileStatus status)
|
||||||
{
|
{
|
||||||
return currentStatus = status;
|
return currentStatus = status;
|
||||||
}
|
}
|
||||||
|
|
@ -712,7 +712,7 @@ bool dPathCopy(const char *fromName, const char *toName, bool nooverwrite)
|
||||||
// The number of bytes read is available in bytesRead if a non-Null pointer is
|
// The number of bytes read is available in bytesRead if a non-Null pointer is
|
||||||
// provided.
|
// provided.
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
File::Status File::read(U32 size, char *dst, U32 *bytesRead)
|
File::FileStatus File::read(U32 size, char *dst, U32 *bytesRead)
|
||||||
{
|
{
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
// fprintf(stdout,"reading %d bytes\n",size);fflush(stdout);
|
// fprintf(stdout,"reading %d bytes\n",size);fflush(stdout);
|
||||||
|
|
@ -770,7 +770,7 @@ bool dPathCopy(const char *fromName, const char *toName, bool nooverwrite)
|
||||||
// The number of bytes written is available in bytesWritten if a non-Null
|
// The number of bytes written is available in bytesWritten if a non-Null
|
||||||
// pointer is provided.
|
// pointer is provided.
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
File::Status File::write(U32 size, const char *src, U32 *bytesWritten)
|
File::FileStatus File::write(U32 size, const char *src, U32 *bytesWritten)
|
||||||
{
|
{
|
||||||
// JMQ: despite the U32 parameters, the maximum filesize supported by this
|
// JMQ: despite the U32 parameters, the maximum filesize supported by this
|
||||||
// function is probably the max value of S32, due to the unix syscall
|
// function is probably the max value of S32, due to the unix syscall
|
||||||
|
|
|
||||||
|
|
@ -40,6 +40,7 @@ public:
|
||||||
virtual void reset();
|
virtual void reset();
|
||||||
virtual void sortVars();
|
virtual void sortVars();
|
||||||
|
|
||||||
|
virtual void print( Stream &stream) {} // TODO OPENGL temporal fix for dedicated build on Linux
|
||||||
virtual void print( Stream &stream, bool isVerterShader );
|
virtual void print( Stream &stream, bool isVerterShader );
|
||||||
void printStructDefines( Stream &stream, bool in );
|
void printStructDefines( Stream &stream, bool in );
|
||||||
virtual void printOnMain( Stream &stream, bool isVerterShader );
|
virtual void printOnMain( Stream &stream, bool isVerterShader );
|
||||||
|
|
@ -55,6 +56,7 @@ public:
|
||||||
virtual void reset();
|
virtual void reset();
|
||||||
virtual void sortVars();
|
virtual void sortVars();
|
||||||
|
|
||||||
|
virtual void print( Stream &stream) {} // TODO OPENGL temporal fix for dedicated build on Linux
|
||||||
virtual void print( Stream &stream, bool isVerterShader );
|
virtual void print( Stream &stream, bool isVerterShader );
|
||||||
virtual void printOnMain( Stream &stream, bool isVerterShader );
|
virtual void printOnMain( Stream &stream, bool isVerterShader );
|
||||||
};
|
};
|
||||||
|
|
@ -73,4 +75,4 @@ public:
|
||||||
virtual void print( Stream &stream, bool isVerterShader );
|
virtual void print( Stream &stream, bool isVerterShader );
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // _SHADERCOMP_GLSL_H_
|
#endif // _SHADERCOMP_GLSL_H_
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue