summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/common/xmlpool.h
diff options
context:
space:
mode:
authorFelix Kuehling <fxkuehl@gmx.de>2005-04-11 21:41:40 +0000
committerFelix Kuehling <fxkuehl@gmx.de>2005-04-11 21:41:40 +0000
commit55ba0dccc92797a0411ce315328100e28f6343b7 (patch)
tree75555b044568d724fdf73062a58d26c484557de5 /src/mesa/drivers/dri/common/xmlpool.h
parentaaa5a664331600139347039419cd5c8d9493b8aa (diff)
Manage option translations in separate .po files to make translations
easier for non-programmers familiar with GNU gettext. For now there is only a German translation but more translations are encouraged. Translatable strings are extracted from t_options.h containing option definitions with English descriptions. A corresponding header options.h with all available translations of option descriptions is generated by gen_xmlpool.py and included by xmlpool.h. Many option descriptions were rephrased to make them unambiguous for translation without context. They are hopefully more helpful to users at the same time.
Diffstat (limited to 'src/mesa/drivers/dri/common/xmlpool.h')
-rw-r--r--src/mesa/drivers/dri/common/xmlpool.h270
1 files changed, 9 insertions, 261 deletions
diff --git a/src/mesa/drivers/dri/common/xmlpool.h b/src/mesa/drivers/dri/common/xmlpool.h
index 46096d8c92..7fbc6e800d 100644
--- a/src/mesa/drivers/dri/common/xmlpool.h
+++ b/src/mesa/drivers/dri/common/xmlpool.h
@@ -1,14 +1,3 @@
-/* -*- mode:C; coding: mult-utf-8-unix -*-
- *
- * !!! Important: This file is encoded in UTF-8 !!!
- *
- * Note (Emacs): You need Mule. In Debian the package is called
- * mule-ucs.
- *
- * Note (Emacs): You may have to enable multibyte characters in the
- * Mule customization group or by setting
- * default-enable-multibyte-characters to t in your .emacs:
- */
/*
* XML DRI client-side driver configuration
* Copyright (C) 2003 Felix Kuehling
@@ -37,8 +26,11 @@
* \brief Pool of common options
* \author Felix Kuehling
*
- * This file defines macros that can be used to construct driConfigOptions
- * in the drivers.
+ * This file defines macros that can be used to construct
+ * driConfigOptions in the drivers. Common options are defined in
+ * xmlpool/t_options.h from which xmlpool/options.h is generated with
+ * translations. This file defines generic helper macros and includes
+ * xmlpool/options.h.
*/
#ifndef __XMLPOOL_H
@@ -92,255 +84,11 @@
#define DRI_CONF_ENUM(value,text) \
"<enum value=\""#value"\" text=\""text"\"/>\n"
+
/*
- * predefined option sections and options with multi-lingual descriptions
+ * Predefined option sections and options with multi-lingual descriptions
+ * are now automatically generated.
*/
-
-/** \brief Debugging options */
-#define DRI_CONF_SECTION_DEBUG \
-DRI_CONF_SECTION_BEGIN \
- DRI_CONF_DESC(en,"Debugging") \
- DRI_CONF_DESC(de,"Fehlersuche")
-
-#define DRI_CONF_NO_RAST(def) \
-DRI_CONF_OPT_BEGIN(no_rast,bool,def) \
- DRI_CONF_DESC(en,"Disable 3D acceleration") \
- DRI_CONF_DESC(de,"3D-Beschleunigung abschalten") \
-DRI_CONF_OPT_END
-
-#define DRI_CONF_PERFORMANCE_BOXES(def) \
-DRI_CONF_OPT_BEGIN(performance_boxes,bool,def) \
- DRI_CONF_DESC(en,"Show performance boxes") \
- DRI_CONF_DESC(de,"Zeige Performanceboxen") \
-DRI_CONF_OPT_END
-
-#define DRI_CONF_DEBUG_DMA(def) \
-DRI_CONF_OPT_BEGIN(debug_dma,bool,def) \
- DRI_CONF_DESC(en,"Debug DMA buffers") \
- DRI_CONF_DESC(de,"DMA Puffer debuggen") \
-DRI_CONF_OPT_END
-
-
-/** \brief Texture-related options */
-#define DRI_CONF_SECTION_QUALITY \
-DRI_CONF_SECTION_BEGIN \
- DRI_CONF_DESC(en,"Image Quality") \
- DRI_CONF_DESC(de,"Bildqualität")
-
-#define DRI_CONF_TEXTURE_DEPTH_FB 0
-#define DRI_CONF_TEXTURE_DEPTH_32 1
-#define DRI_CONF_TEXTURE_DEPTH_16 2
-#define DRI_CONF_TEXTURE_DEPTH_FORCE_16 3
-#define DRI_CONF_TEXTURE_DEPTH(def) \
-DRI_CONF_OPT_BEGIN_V(texture_depth,enum,def,"0:3") \
- DRI_CONF_DESC_BEGIN(en,"Texture color depth") \
- DRI_CONF_ENUM(0,"Prefer frame buffer color depth") \
- DRI_CONF_ENUM(1,"Prefer 32 bits") \
- DRI_CONF_ENUM(2,"Prefer 16 bits") \
- DRI_CONF_ENUM(3,"Force 16 bits") \
- DRI_CONF_DESC_END \
- DRI_CONF_DESC_BEGIN(de,"Texturfarbtiefe") \
- DRI_CONF_ENUM(0,"Bevorzugt so wie Framebuffer") \
- DRI_CONF_ENUM(1,"Bevorzugt 32 Bits") \
- DRI_CONF_ENUM(2,"Bevorzugt 16 Bits") \
- DRI_CONF_ENUM(3,"Höchstens 16 Bits") \
- DRI_CONF_DESC_END \
-DRI_CONF_OPT_END
-
-#define DRI_CONF_DEF_MAX_ANISOTROPY(def,range) \
-DRI_CONF_OPT_BEGIN_V(def_max_anisotropy,float,def,range) \
- DRI_CONF_DESC(en,"Default maximum value for anisotropic texture filtering") \
- DRI_CONF_DESC(de,"Standard Maximalwert für anisotropische Texturfilterung") \
-DRI_CONF_OPT_END
-
-#define DRI_CONF_NO_NEG_LOD_BIAS(def) \
-DRI_CONF_OPT_BEGIN(no_neg_lod_bias,bool,def) \
- DRI_CONF_DESC(en,"Forbid negative texture LOD bias") \
- DRI_CONF_DESC(de,"Verbiete negativen Textur-LOD-Bias") \
-DRI_CONF_OPT_END
-
-#define DRI_CONF_FORCE_S3TC_ENABLE(def) \
-DRI_CONF_OPT_BEGIN(force_s3tc_enable,bool,def) \
- DRI_CONF_DESC(en,"enable s3tc even if software support is not available") \
- DRI_CONF_DESC(de,"Benutze s3tc auch ohne Softwareunterstuetzung") \
-DRI_CONF_OPT_END
-
-#define DRI_CONF_COLOR_REDUCTION_ROUND 0
-#define DRI_CONF_COLOR_REDUCTION_DITHER 1
-#define DRI_CONF_COLOR_REDUCTION(def) \
-DRI_CONF_OPT_BEGIN_V(color_reduction,enum,def,"0:1") \
- DRI_CONF_DESC_BEGIN(en,"Default color reduction method") \
- DRI_CONF_ENUM(0,"Round or truncate") \
- DRI_CONF_ENUM(1,"Dither") \
- DRI_CONF_DESC_END \
- DRI_CONF_DESC_BEGIN(de,"Standardmethode zur Farbreduktion") \
- DRI_CONF_ENUM(0,"Runden oder Abschneiden") \
- DRI_CONF_ENUM(1,"Rastern") \
- DRI_CONF_DESC_END \
-DRI_CONF_OPT_END
-
-#define DRI_CONF_ROUND_TRUNC 0
-#define DRI_CONF_ROUND_ROUND 1
-#define DRI_CONF_ROUND_MODE(def) \
-DRI_CONF_OPT_BEGIN_V(round_mode,enum,def,"0:1") \
- DRI_CONF_DESC_BEGIN(en,"Round or truncate colors") \
- DRI_CONF_ENUM(0,"Truncate") \
- DRI_CONF_ENUM(1,"Round") \
- DRI_CONF_DESC_END \
- DRI_CONF_DESC_BEGIN(de,"Farben runden oder abschneiden") \
- DRI_CONF_ENUM(0,"Abschneiden") \
- DRI_CONF_ENUM(1,"Runden") \
- DRI_CONF_DESC_END \
-DRI_CONF_OPT_END
-
-#define DRI_CONF_DITHER_XERRORDIFF 0
-#define DRI_CONF_DITHER_XERRORDIFFRESET 1
-#define DRI_CONF_DITHER_ORDERED 2
-#define DRI_CONF_DITHER_MODE(def) \
-DRI_CONF_OPT_BEGIN_V(dither_mode,enum,def,"0:2") \
- DRI_CONF_DESC_BEGIN(en,"Color dithering") \
- DRI_CONF_ENUM(0,"Horizontal error diffusion") \
- DRI_CONF_ENUM(1,"Horizontal error diffusion, reset error at line start") \
- DRI_CONF_ENUM(2,"Ordered 2D dithering") \
- DRI_CONF_DESC_END \
- DRI_CONF_DESC_BEGIN(de,"Farben rastern") \
- DRI_CONF_ENUM(0,"Horizontale Fehlerstreuung") \
- DRI_CONF_ENUM(1,"Horizontale Fehlerstreuung, Fehler am Zeilenanfang zurücksetzen") \
- DRI_CONF_ENUM(2,"Geordnete 2D Farbrasterung") \
- DRI_CONF_DESC_END \
-DRI_CONF_OPT_END
-
-#define DRI_CONF_FLOAT_DEPTH(def) \
-DRI_CONF_OPT_BEGIN(float_depth,bool,def) \
- DRI_CONF_DESC(en,"Floating point depth buffer") \
- DRI_CONF_DESC(de,"Fließkomma z-Puffer") \
-DRI_CONF_OPT_END
-
-/** \brief Performance-related options */
-#define DRI_CONF_SECTION_PERFORMANCE \
-DRI_CONF_SECTION_BEGIN \
- DRI_CONF_DESC(en,"Performance") \
- DRI_CONF_DESC(de,"Leistung")
-
-#define DRI_CONF_TCL_SW 0
-#define DRI_CONF_TCL_PIPELINED 1
-#define DRI_CONF_TCL_VTXFMT 2
-#define DRI_CONF_TCL_CODEGEN 3
-#define DRI_CONF_TCL_MODE(def) \
-DRI_CONF_OPT_BEGIN_V(tcl_mode,enum,def,"0:3") \
- DRI_CONF_DESC_BEGIN(en,"TCL mode (Transformation, Clipping, Lighting)") \
- DRI_CONF_ENUM(0,"Software") \
- DRI_CONF_ENUM(1,"TCL stage in MESA pipeline") \
- DRI_CONF_ENUM(2,"Bypass MESA's pipeline") \
- DRI_CONF_ENUM(3,"Bypass MESA's pipeline with state-based code generation") \
- DRI_CONF_DESC_END \
- DRI_CONF_DESC_BEGIN(de,"TCL Modus (Transformation, Clipping, Licht)") \
- DRI_CONF_ENUM(0,"Software") \
- DRI_CONF_ENUM(1,"TCL Stufe in MESA Pipeline") \
- DRI_CONF_ENUM(2,"Umgehe MESAs Pipeline") \
- DRI_CONF_ENUM(3,"Umgehe MESAs Pipeline mit zustandsbasierter Codegenerierung") \
- DRI_CONF_DESC_END \
-DRI_CONF_OPT_END
-
-#define DRI_CONF_FTHROTTLE_BUSY 0
-#define DRI_CONF_FTHROTTLE_USLEEPS 1
-#define DRI_CONF_FTHROTTLE_IRQS 2
-#define DRI_CONF_FTHROTTLE_MODE(def) \
-DRI_CONF_OPT_BEGIN_V(fthrottle_mode,enum,def,"0:2") \
- DRI_CONF_DESC_BEGIN(en,"Frame throttling") \
- DRI_CONF_ENUM(0,"Busy waiting") \
- DRI_CONF_ENUM(1,"Usleeps") \
- DRI_CONF_ENUM(2,"Software interrupts") \
- DRI_CONF_DESC_END \
- DRI_CONF_DESC_BEGIN(de,"Framethrottling") \
- DRI_CONF_ENUM(0,"Aktives Warten") \
- DRI_CONF_ENUM(1,"Usleeps") \
- DRI_CONF_ENUM(2,"Software Interrutps") \
- DRI_CONF_DESC_END \
-DRI_CONF_OPT_END
-
-#define DRI_CONF_VBLANK_NEVER 0
-#define DRI_CONF_VBLANK_DEF_INTERVAL_0 1
-#define DRI_CONF_VBLANK_DEF_INTERVAL_1 2
-#define DRI_CONF_VBLANK_ALWAYS_SYNC 3
-#define DRI_CONF_VBLANK_MODE(def) \
-DRI_CONF_OPT_BEGIN_V(vblank_mode,enum,def,"0:3") \
- DRI_CONF_DESC_BEGIN(en,"Synchronization with vertical refresh (swap intervals)") \
- DRI_CONF_ENUM(0,"Never, FPS rulez!") \
- DRI_CONF_ENUM(1,"Application preference, default interval 0") \
- DRI_CONF_ENUM(2,"Application preference, default interval 1") \
- DRI_CONF_ENUM(3,"Application preference, always synchronize with refresh") \
- DRI_CONF_DESC_END \
- DRI_CONF_DESC_BEGIN(de,"Synchronisation mit dem vertikalen Bildaufbau (swap intervals)") \
- DRI_CONF_ENUM(0,"Niemals, immer die maximale Framerate") \
- DRI_CONF_ENUM(1,"Anwendung entscheidet, Standardinterval 0") \
- DRI_CONF_ENUM(2,"Anwendung entscheidet, Standardinterval 1") \
- DRI_CONF_ENUM(3,"Anwendung entscheidet, immer mit Bildaufbau synchronisieren") \
- DRI_CONF_DESC_END \
-DRI_CONF_OPT_END
-
-#define DRI_CONF_HYPERZ_DISABLED 0
-#define DRI_CONF_HYPERZ_ENABLED 1
-#define DRI_CONF_HYPERZ(def) \
-DRI_CONF_OPT_BEGIN(hyperz,bool,def) \
- DRI_CONF_DESC(en,"Use hyperz") \
- DRI_CONF_DESC(de,"Hyperz benutzen") \
-DRI_CONF_OPT_END
-
-#define DRI_CONF_MAX_TEXTURE_UNITS(def,min,max) \
-DRI_CONF_OPT_BEGIN_V(texture_units,int,def, # min ":" # max ) \
- DRI_CONF_DESC(en,"Number of texture units") \
- DRI_CONF_DESC(de,"Anzahl der Textureinheiten") \
-DRI_CONF_OPT_END
-
-#define DRI_CONF_TEXTURE_LEVEL_HACK(def) \
-DRI_CONF_OPT_BEGIN(texture_level_hack,bool,def) \
- DRI_CONF_DESC(en,"Enable texture level hack for radeon/r200 for playing games with compressed textures") \
-DRI_CONF_OPT_END
-
-#define DRI_CONF_TEXTURE_BLEND_QUALITY(def,range) \
-DRI_CONF_OPT_BEGIN_V(texture_blend_quality,float,def,range) \
- DRI_CONF_DESC(en, "texture blend quality, aka brilinear texture filtering") \
- DRI_CONF_DESC(de, "Texturfilterqualität, auch bekannt als brilineare Texturfilterung") \
-DRI_CONF_OPT_END
-
-#define DRI_CONF_TEXTURE_HEAPS_ALL 0
-#define DRI_CONF_TEXTURE_HEAPS_CARD 1
-#define DRI_CONF_TEXTURE_HEAPS_GART 2
-#define DRI_CONF_TEXTURE_HEAPS(def) \
-DRI_CONF_OPT_BEGIN_V(texture_heaps,enum,def,"0:2") \
- DRI_CONF_DESC_BEGIN(en,"Used types of texture memory") \
- DRI_CONF_ENUM(0,"All available") \
- DRI_CONF_ENUM(1,"Only card memory (if available)") \
- DRI_CONF_ENUM(2,"Only GART (AGP/PCIE) memory (if available)") \
- DRI_CONF_DESC_END \
- DRI_CONF_DESC_BEGIN(de,"Verwendete Texturspeicherarten") \
- DRI_CONF_ENUM(0,"Alle verfügbaren") \
- DRI_CONF_ENUM(1,"Nur Grafikspeicher (falls vorhanden)") \
- DRI_CONF_ENUM(2,"Nur GART (AGP/PCIE) Speicher (falls vorhanden)") \
- DRI_CONF_DESC_END \
-DRI_CONF_OPT_END
-
-/* Options for features that are not done in hardware by the driver (like GL_ARB_vertex_program
- On cards where there is no documentation (r200) or on rasterization-only hardware). */
-#define DRI_CONF_SECTION_SOFTWARE \
-DRI_CONF_SECTION_BEGIN \
- DRI_CONF_DESC(de,"Funktionalität, die nicht durch die Hardware beschleunigt wird") \
- DRI_CONF_DESC(en,"Features that are not hardware-accelerated")
-
-#define DRI_CONF_ARB_VERTEX_PROGRAM(def) \
-DRI_CONF_OPT_BEGIN(arb_vertex_program,bool,def) \
- DRI_CONF_DESC(de,"GL_ARB_vertex_program aktivieren") \
- DRI_CONF_DESC(en,"Enable GL_ARB_vertex_program") \
- DRI_CONF_DESC(fr,"Activer GL_ARB_vertex_program") \
-DRI_CONF_OPT_END
-
-#define DRI_CONF_NV_VERTEX_PROGRAM(def) \
-DRI_CONF_OPT_BEGIN(nv_vertex_program,bool,def) \
- DRI_CONF_DESC(de,"GL_NV_vertex_program aktivieren") \
- DRI_CONF_DESC(en,"Enable GL_NV_vertex_program") \
- DRI_CONF_DESC(fr,"Activer GL_NV_vertex_program") \
-DRI_CONF_OPT_END
-
+#include "xmlpool/options.h"
#endif