Search
lxdream.org :: lxdream/src/drivers/video_gl.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/drivers/video_gl.h
changeset 854:130928a3cdcb
prev736:a02d1475ccfd
next1159:580436b01b6c
author nkeynes
date Tue Sep 09 00:51:43 2008 +0000 (11 years ago)
permissions -rw-r--r--
last change Add general gl_window_to_system_coords function to convert window system coordinates
back into something in the DC range of 640x480, update mouse events to use it
file annotate diff log raw
1.1 --- a/src/drivers/video_gl.h Mon Jul 14 07:44:42 2008 +0000
1.2 +++ b/src/drivers/video_gl.h Tue Sep 09 00:51:43 2008 +0000
1.3 @@ -49,6 +49,13 @@
1.4 void gl_texture_window( int width, int height, int tex_id, gboolean inverted );
1.5
1.6 /**
1.7 + * Convert window coordinates to dreamcast device coords (640x480) using the
1.8 + * same viewable area as gl_texture_window.
1.9 + * If the coordinates are outside the viewable area, the result is -1,-1.
1.10 + */
1.11 +void gl_window_to_system_coords( int *x, int *y );
1.12 +
1.13 +/**
1.14 * Generic GL read_render_buffer. This function assumes that the caller
1.15 * has already set the appropriate glReadBuffer(); in other words, unless
1.16 * there's only one buffer this needs to be wrapped.
.