2004-03-09, 05:42 PM
Beginning of February was the target to put out an SDK of sorts, but I'm a bit behind schedule. It'll just consist of a couple of samples and some of classes to make things a little easier.
If you want to get started developing a plugin before this SDK, you can start developing a class which implements the following interface.
namespace GBPVR.Public
{
/// <summary>The IMenuTask is the interface that all GBPVR menu tasks implement</summary>
public interface IMenuTask
{
/// <summary>Returns the name of task, which is shown on the task's button</summary>
string getName();
/// <summary>Returns a short description about the purpose of the task</summary>
string getDescription();
/// <summary>Returns an image that represent the task. </summary>
Image getTaskImage();
/// <summary>Is called by GBPVR to get the task to render the screen to show the user.
/// Set requiresMoreRendering to true to render a series of screen (simple animation)</summary>
Image render(out bool requiresMoreRendering);
/// <summary>
/// Is called by GBPVR in response to a key being pressed while this
/// task is active. The task should return true if it has performed some action
/// as a result of the key press - which will inturn cause the task to be render()'d
/// </summary>
bool OnKeyDown(System.Windows.Forms.KeyEventArgs e);
/// <summary>Is called by GBPVR when the user has click'd somewhere on the page</summary>
void OnClick(System.Drawing.Point location);
/// <summary>Is called by GBPVR when the user has double click'd somewhere on the page</summary>
void OnDoubleClick(System.Drawing.Point location);
/// <summary>Is called by GBPVR when the task is activated.</summary>
void Activate();
/// <summary>Is called by GBPVR when the task is deactivated.</summary>
void Deactivate();
/// <summary>
/// This method is used to inform the active task of mouse wheel actions for scrolling etc...
/// </summary>
/// <param name="e">Mouse args that can be used for information about the mouse action</param>
void OnMouseWheel(MouseEventArgs e);
}
}
If you have any questions just ask...
If you want to get started developing a plugin before this SDK, you can start developing a class which implements the following interface.
namespace GBPVR.Public
{
/// <summary>The IMenuTask is the interface that all GBPVR menu tasks implement</summary>
public interface IMenuTask
{
/// <summary>Returns the name of task, which is shown on the task's button</summary>
string getName();
/// <summary>Returns a short description about the purpose of the task</summary>
string getDescription();
/// <summary>Returns an image that represent the task. </summary>
Image getTaskImage();
/// <summary>Is called by GBPVR to get the task to render the screen to show the user.
/// Set requiresMoreRendering to true to render a series of screen (simple animation)</summary>
Image render(out bool requiresMoreRendering);
/// <summary>
/// Is called by GBPVR in response to a key being pressed while this
/// task is active. The task should return true if it has performed some action
/// as a result of the key press - which will inturn cause the task to be render()'d
/// </summary>
bool OnKeyDown(System.Windows.Forms.KeyEventArgs e);
/// <summary>Is called by GBPVR when the user has click'd somewhere on the page</summary>
void OnClick(System.Drawing.Point location);
/// <summary>Is called by GBPVR when the user has double click'd somewhere on the page</summary>
void OnDoubleClick(System.Drawing.Point location);
/// <summary>Is called by GBPVR when the task is activated.</summary>
void Activate();
/// <summary>Is called by GBPVR when the task is deactivated.</summary>
void Deactivate();
/// <summary>
/// This method is used to inform the active task of mouse wheel actions for scrolling etc...
/// </summary>
/// <param name="e">Mouse args that can be used for information about the mouse action</param>
void OnMouseWheel(MouseEventArgs e);
}
}
If you have any questions just ask...