wjc272008 / jmonkeyengine

Automatically exported from code.google.com/p/jmonkeyengine
0 stars 0 forks source link

The capability to query "non-boolean" caps is not available #507

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Currently it is not possible to query "non-boolean" caps. For example, maximum 
texture size, maximum number of textures supported per draw call, and maximum 
samples for multisample functionality.
I recommend changing the "caps" returned from the renderer from a 
"EnumSet<Caps>" to a "EnumMap<Caps, Object>". For boolean caps, the entry will 
simply exist in the map (e.g. contains(cap) == true). For integer entries, the 
value is stored as an "Integer" object. E.g. ((Integer)get(cap)).intValue().

Original issue reported on code.google.com by ShadowIs...@gmail.com on 9 Jun 2012 at 9:05

GoogleCodeExporter commented 9 years ago
I agree, that would solve the problem how to recommend userfriendly presets, 
such as AA samples or hi/lo texture quality.

Original comment by roo...@gmail.com on 9 Jun 2012 at 9:09

GoogleCodeExporter commented 9 years ago

Original comment by ShadowIs...@gmail.com on 6 Sep 2012 at 6:11