Code: Select all
/// This method is called by a plugin subclass, derived from this class, to specify name, type, and default /// value of the plugin parameter whose index is passed as parameter to the method. This method is usually /// called when a plugin object is instantiated (i.e., in the plugin subclass contructor). This version of /// the SetParamInfo function (DefaultValue of type char*) should be called for plugin parameters of type text. /// /// \param dwIndex Index of the plugin parameter whose data are specified. /// It should be in the range [0, Number of plugin parameters). /// \param pchName A string containing the name of the plugin parameter. /// According to the FreeFrame specification it should be at most 16 1-byte ASCII /// characters long. Longer strings will be truncated at the 16th character. /// \param dwType The type of the plugin parameter. Codes for allowed types are defined in FreeFrame.h. /// \param pchDefaultValue A string to be used as the default value of the plugin parameter. void SetParamInfo(unsigned int index, const char* pchName, unsigned int type, const char* pchDefaultValue);
Hard to say without seeing the rest of your code. Is there actually a bound texture to unbind at that point?Any idea what that could be?
What you have should work. I think a text param expects you to at least implement GetTextParameter, otherwise it will try to call it and crash. I don't think implementing SetTextParameter is actually necessarry.Also could you give me a example for the text only param
Scratch that. That's silly. A call to glBindTexture should always work. I thinkIs there actually a bound texture to unbind at that point?