Tao.Sdl SDK Documentation

SdlTtf.TTF_SetError Method 

Set the current error string

[Visual Basic]
Public Shared Sub TTF_SetError( _
   ByVal message As String _
)
[C#]
public static void TTF_SetError(
   string message
);

Parameters

message

Remarks

This is the same as SDL_SetError, which sets the error string which may be fetched with TTF_GetError (or SDL_GetError). This functions acts like printf, except that it is limited to SDL_ERRBUFIZE(1024) chars in length. It only accepts the following format types: %s, %d, %f, %p. No variations are supported, like %.2f would not work. For any more specifics read the SDL docs.

Binds to C-function in SDL_image.h

            void TTF_SetError(const char *fmt, ...)
            

Example

            int myfunc(int i) {
                    TTF_SetError("myfunc is not implemented! %d was passed in.",i);
                    return(-1);
                }
            

See Also

SdlTtf Class | Tao.Sdl Namespace | TTF_GetError