#include "stonerview.h"
#include "gltrackball.h"
+#define DEF_TRANSPARENT "True"
+
typedef struct {
GLXContext *glx_context;
stonerview_state *st;
static stonerview_configuration *bps = NULL;
-ENTRYPOINT ModeSpecOpt stonerview_opts = {0, NULL, 0, NULL, NULL};
+static Bool transparent_p;
+
+
+static XrmOptionDescRec opts[] = {
+ { "-transparent", ".transparent", XrmoptionNoArg, "True" },
+ { "+transparent", ".transparent", XrmoptionNoArg, "False" },
+};
+
+static argtype vars[] = {
+ {&transparent_p, "transparent", "Transparent", DEF_TRANSPARENT, t_Bool},
+};
+
+ENTRYPOINT ModeSpecOpt stonerview_opts = {countof(opts), opts, countof(vars), vars, NULL};
ENTRYPOINT void
bp->glx_context = init_GL(mi);
bp->trackball = gltrackball_init ();
- bp->st = init_view(MI_IS_WIREFRAME(mi));
+ bp->st = init_view(MI_IS_WIREFRAME(mi), transparent_p);
init_move(bp->st);
reshape_stonerview (mi, MI_WIDTH(mi), MI_HEIGHT(mi));