Check-in [d191e29541]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Implement VirtualFramebuffer capabilities.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:d191e2954163cc2c9b5af2c98640733f6e26bbcd
User & Date: stephanie.gawroriski 2020-01-16 00:34:05
Context
2020-01-16
00:39
Add setting of title framebuffer control. check-in: 4e5ffafbc0 user: stephanie.gawroriski tags: trunk
00:34
Implement VirtualFramebuffer capabilities. check-in: d191e29541 user: stephanie.gawroriski tags: trunk
00:27
Base partial work graphics and framebuffer refactor. check-in: 49b23a5fbf user: stephanie.gawroriski tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to runt/apis/midp-lcdui/cc/squirreljme/runtime/lcdui/vfb/VirtualFramebuffer.java.

13
14
15
16
17
18
19


20
21
22
23
24
25
26
...
237
238
239
240
241
242
243
244



245
246
247
248
249
250
251
252
import cc.squirreljme.jvm.Framebuffer;
import cc.squirreljme.jvm.IPCCallback;

/**
 * This is a virtual framebuffer which may be used by non-SquirrelJME JVMs and
 * by higher level JVMs to allow for IPC based graphics to be used.
 *


 * @since 2019/12/28
 */
public final class VirtualFramebuffer
{
	/** The default width. */
	public static final int DEFAULT_WIDTH =
		320;
................................................................................
				
				// The backing array object
			case Framebuffer.CONTROL_BACKING_ARRAY_OBJECT:
				return Assembly.objectToPointer(this.pixels);
				
				// Returns the capabilities of the display.
			case Framebuffer.CONTROL_GET_CAPABILITIES:
				throw new todo.TODO();



			
				// Query acceleration function.
			case Framebuffer.CONTROL_ACCEL_FUNC_QUERY:
				throw new todo.TODO();
			
				// Perform acceleration function.
			case Framebuffer.CONTROL_ACCEL_FUNC_INVOKE:
				throw new todo.TODO();







>
>







 







|
>
>
>
|







13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
...
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
import cc.squirreljme.jvm.Framebuffer;
import cc.squirreljme.jvm.IPCCallback;

/**
 * This is a virtual framebuffer which may be used by non-SquirrelJME JVMs and
 * by higher level JVMs to allow for IPC based graphics to be used.
 *
 * This assumes that event handling is used.
 *
 * @since 2019/12/28
 */
public final class VirtualFramebuffer
{
	/** The default width. */
	public static final int DEFAULT_WIDTH =
		320;
................................................................................
				
				// The backing array object
			case Framebuffer.CONTROL_BACKING_ARRAY_OBJECT:
				return Assembly.objectToPointer(this.pixels);
				
				// Returns the capabilities of the display.
			case Framebuffer.CONTROL_GET_CAPABILITIES:
				return Framebuffer.CAPABILITY_TOUCH |
					Framebuffer.CAPABILITY_KEYBOARD |
					Framebuffer.CAPABILITY_IPC_EVENTS |
					Framebuffer.CAPABILITY_COLOR;
				
				// Query acceleration function.
			case Framebuffer.CONTROL_ACCEL_FUNC_QUERY:
				throw new todo.TODO();
			
				// Perform acceleration function.
			case Framebuffer.CONTROL_ACCEL_FUNC_INVOKE:
				throw new todo.TODO();