Alphabetical Class Index   Compound Members  

com.techsoft.hoops.HCanvas Class Reference

The HCanvas class provides a HOOPS/3dGS-specific implementation of the java.awt canvas class. More...

List of all members.

Public Member Functions

native void paint (Graphics g)
 Native entry point for painting.
native long get_window_handle (Graphics g)
 Native entry point which gets the underlying native window handle associated with the awt canvas.

Static Package Functions

 [static initializer]

Detailed Description

The HCanvas class provides a HOOPS/3dGS-specific implementation of the java.awt canvas class.

HCanvas manages the connection between HOOPS/3dGS driver instance and a java.awt canvas, and is meant to be used as the base canvas in HOOPS-Java applications that are only using HOOPS/3dGS It contains native entry points for the paint and get_window_handle methods


Member Function Documentation

native long com.techsoft.hoops.HCanvas.get_window_handle ( Graphics  g)

Native entry point which gets the underlying native window handle associated with the awt canvas.

This native window handle is required by HOOPS/3dGS in order to connect to the canvas

Parameters:
gProvides the graphics context for the painting
Returns:
handle of a window for hoops to draw into
native void com.techsoft.hoops.HCanvas.paint ( Graphics  g)

Native entry point for painting.

It will use only HOOPS/3dGS calls to redraw the scene

Parameters:
gProvides the graphics context for the painting

Reimplemented in com.techsoft.hoops.HJCanvas.


The documentation for this class was generated from the following file: