Personal tools
You are here: Home downloads Gem Roadmap #1: extendible GemState
Document Actions

#1: extendible GemState

Contents
  1. Motivation
  2. Proposal
  3. Risks
by IOhannes m zmoelnig last modified 2011-11-21 11:41 AM
use key/value attributes for putting variables into GemState
Proposed by
IOhannes m zmölnig
Proposal type
Architecture
Assigned to release
State
completed

Motivation

the current GemState-class cannot be extended without breaking ABI compatibility.

Proposal

GemState should use a key/value mechanism, where one could set "attributes" based on a symbolic-name.

examples

OLD: state->image

NEW: state.getData(gensym("pixBlock"))

this will break API and ABI compatibility, but only once and for all

Risks

performance penalty (shouldn't very high: openGL uses a glGet(NAME) as well)


Powered by IEM Powered by Plone Section 508 WCAG Valid XHTML Valid CSS Usable in any browser