|
|
@@ -15,9 +15,11 @@
|
|
|
|
|
|
/**
|
|
|
* Return the Shader's filename for the given shader type.
|
|
|
+ *
|
|
|
+ * @deprecated Access the filename of the individual modules instead.
|
|
|
*/
|
|
|
INLINE Filename Shader::
|
|
|
-get_filename(ShaderType type) const {
|
|
|
+get_filename(DeprecatedShaderType type) const {
|
|
|
if (_filename._separate && type != ST_none) {
|
|
|
switch (type) {
|
|
|
case ST_vertex:
|
|
|
@@ -53,9 +55,11 @@ get_filename(ShaderType type) const {
|
|
|
/**
|
|
|
* Sets the Shader's filename for the given shader type. Useful for
|
|
|
* associating a shader created with Shader.make with a name for diagnostics.
|
|
|
+ *
|
|
|
+ * @deprecated Access the filename of the individual modules instead.
|
|
|
*/
|
|
|
INLINE void Shader::
|
|
|
-set_filename(ShaderType type, const Filename &filename) {
|
|
|
+set_filename(DeprecatedShaderType type, const Filename &filename) {
|
|
|
_filename._separate = true;
|
|
|
switch (type) {
|
|
|
case ST_vertex:
|
|
|
@@ -88,7 +92,7 @@ set_filename(ShaderType type, const Filename &filename) {
|
|
|
* @deprecated
|
|
|
*/
|
|
|
INLINE const std::string &Shader::
|
|
|
-get_text(ShaderType type) const {
|
|
|
+get_text(DeprecatedShaderType type) const {
|
|
|
if (_text._separate) {
|
|
|
nassertr(type != ST_none || !_text._shared.empty(), _text._shared);
|
|
|
switch (type) {
|