~landronimirc/impressive/trunk

« back to all changes in this revision

Viewing changes to src/glcore.py

  • Committer: keyj
  • Date: 2018-01-31 21:38:44 UTC
  • Revision ID: svn-v4:58003caa-664d-4c56-a378-6d187ff66ee1:trunk/impressive:218
major new feature: box-zoom mode

Ctrl+LMB-drag now enters a special zoom mode
where the selected rectangle is zoomed in to
cover the whole screen, and the rest of the
screen is considerably dimmed down (even more
so than in highlight box and spotlight mode).

This also decouples the visual zoom factor
from the page resolution zoom factor;
in other words, it's possible to zoom in
*really* far now, even though the rendering
resolution is limited to only 5x, 2x or
even 1x (see new --maxzoom option).

Show diffs side-by-side

added added

removed removed

Lines of Context:
83
83
    LINK_STATUS = 0x8B82
84
84
    INFO_LOG_LENGTH = 0x8B84
85
85
    UNPACK_ALIGNMENT = 0x0CF5
 
86
    MAX_TEXTURE_SIZE = 0x0D33
86
87
    _funcs = [
87
88
        GLFunction(True,  "GetString",                c_char_p, c_uint),
88
89
        GLFunction(True,  "Enable",                   None, c_uint),
129
130
        GLFunction(True,  "DrawArrays",               None, c_uint, c_uint, c_uint),
130
131
        GLFunction(True,  "DrawElements",             None, c_uint, c_uint, c_uint, c_void_p),
131
132
        GLFunction(True,  "PixelStorei",              None, c_uint, c_uint),
 
133
        GLFunction(True,  "GetIntegerv",              None, c_uint, POINTER(c_int)),
132
134
    ]
133
135
    _typemap = {
134
136
                  BYTE:  c_int8,