#include "GLSLShaderStrings.h"
#include <maya/MStringResource.h>
#include <maya/MString.h>
#include <maya/MStringArray.h>
#ifdef __LINUX__ // Linux
#include <strings.h>
#endif
namespace glslShaderStrings
{
#define kPluginId "glslShader"
const MStringResourceId kErrorFileNotFound ( kPluginId,
"kErrorFileNotFound",
MString(
"Effect file \"^1s\" not found." ) );
const MStringResourceId kErrorLoadingEffect ( kPluginId,
"kErrorLoadingEffect",
MString(
"Error loading effect file \"^1s\":\n\n^2s\n\n^3s" ) );
const MStringResourceId kEditAnnotationWIN ( kPluginId,
"kEditAnnotationWIN",
MString(
"Edit with application associated with shader file" ) );
const MStringResourceId kEditAnnotationMAC ( kPluginId,
"kEditAnnotationMAC",
MString(
"Edit shader file with TextEdit" ) );
const MStringResourceId kEditAnnotationLNX ( kPluginId,
"kEditAnnotationLNX",
MString(
"Edit shader file with your editor" ) );
const MStringResourceId kEditCommandLNX ( kPluginId,
"kEditCommandLNX",
MString(
"Please set the command before using this feature." ) );
const MStringResourceId kErrorRegisterNodeType ( kPluginId,
"kErrorRegisterNodeType",
MString(
"Failed to register ^1s to filePathEditor" ) );
const MStringResourceId kPrefSavePrefsOrNotMsg ( kPluginId,
"kPrefSavePrefsOrNotMsg",
MString(
"The GLSLShader plug-in is about to refresh preferences windows. Save your changes in the preferences window?" ) );
const MStringResourceId kPrefDefaultEffectFile ( kPluginId,
"kPrefDefaultEffectFile",
MString(
"Default effects file" ) );
const MStringResourceId kPrefGLSLShaderPanel ( kPluginId,
"kPrefGLSLShaderPanel",
MString(
"GLSL Shader Preferences" ) );
const MStringResourceId kTechniqueTip ( kPluginId,
"kTechniqueTip",
MString(
"Select among the rendering techniques defined in the fx file." ) );
const MStringResourceId kLightConnectionImplicit ( kPluginId,
"kLightConnectionImplicit",
MString(
"Automatic Bind" ) );
const MStringResourceId kLightConnectionNoneTip ( kPluginId,
"kLightConnectionNoneTip",
MString(
"Ignores Maya lights and uses the settings in the effect file." ) );
const MStringResourceId kLightConnectionImplicitTip ( kPluginId,
"kLightConnectionImplicitTip",
MString(
"Maya will automatically bind scene lights and parameters to the lights defined in the effect file." ) );
const MStringResourceId kLightConnectionExplicitTip ( kPluginId,
"kLightConnectionExplicitTip",
MString(
"Explicitly binds a Maya scene light and it's parameters to a light defined in the effect file." ) );
const MStringResourceId kActionNewAnnotation ( kPluginId,
"kActionNewAnnotation",
MString(
"Add a new action to this menu" ) );
const MStringResourceId kActionNothingAnnotation ( kPluginId,
"kActionNothingAnnotation",
MString(
"Button does nothing; not assigned." ) );
const MStringResourceId kActionNotAssigned ( kPluginId,
"kActionNotAssigned",
MString(
"LMB: Does nothing; not assigned. RMB: Choose what this button should do." ) );
const MStringResourceId kActionEmptyCommand ( kPluginId,
"kActionEmptyCommand",
MString(
"LMB: Does nothing; empty command. RMB: Choose what this button should do." ) );
const MStringResourceId kActionEditorTitle ( kPluginId,
"kActionEditorTitle",
MString(
"GLSLShader Tool Button Editor" ) );
const MStringResourceId kActionEditorInsertVariable ( kPluginId,
"kActionEditorInsertVariable",
MString(
"Insert variable:" ) );
const MStringResourceId kInvalidGLSLShader ( kPluginId,
"kInvalidGLSLShader",
MString(
"Invalid GLSLShader node: ^1s" ) );
const MStringResourceId kUnknownSceneObject ( kPluginId,
"kUnknownSceneObject",
MString(
"Unknown scene object: ^1s" ) );
const MStringResourceId kUnknownConnectableLight ( kPluginId,
"kUnknownConnectableLight",
MString(
"Unknown connectable light: ^1s" ) );
}
MStatus glslShaderStrings::registerMStringResources()
{
return MS::kSuccess;
}
{
}
{
return glslShaderStrings::getString(stringId, args);
}
{
string.
format( glslShaderStrings::getString(stringId), args);
return string;
}