atomes 1.1.15
atomes: an atomic scale modeling tool box
|
Startup testing of OpenGL configuration for the atomes program. More...
#include <gtk/gtk.h>
#include <gdk/gdk.h>
#include <epoxy/gl.h>
#include <GL/glu.h>
#include <epoxy/glx.h>
#include <pwd.h>
Go to the source code of this file.
Macros | |
#define | APP_EXTENSION |
Functions | |
void | printhelp () |
void | printversion () |
void | show_the_widgets (GtkWidget *widg) |
show GtkWidget | |
void | hide_the_widgets (GtkWidget *widg) |
hide GtkWidget | |
gboolean | is_the_widget_visible (GtkWidget *widg) |
test if a GtkWidget exist, then return if it is visible or not | |
GtkWidget * | destroy_this_widget (GtkWidget *widg) |
destroy a GtkWidget | |
gboolean | is_GLExtension_Supported (const char *extension) |
void | init_opengl () |
initialize OpenGL rendering parameters | |
GError * | init_gtk_gl_area (GtkGLArea *area) |
G_MODULE_EXPORT void | on_realize (GtkWidget *widg, gpointer data) |
realize event for the OpenGL widget | |
GtkWidget * | create_opengl_window (GApplication *app) |
create the test OpenGL window | |
void | test_opengl_window (GApplication *app) |
test possibility to create an OpenGL context | |
G_MODULE_EXPORT void | run_opengl_test (GApplication *app, gpointer data) |
run the OpenGL testing | |
int | main (int argc, char *argv[]) |
Variables | |
int | opengl_visual = 1 |
Startup testing of OpenGL configuration for the atomes program.
Definition in file startup_testing.c.
#define APP_EXTENSION |
Definition at line 51 of file startup_testing.c.
GtkWidget * create_opengl_window | ( | GApplication * | app | ) |
create the test OpenGL window
app | the target GApplication |
Definition at line 372 of file startup_testing.c.
GtkWidget * destroy_this_widget | ( | GtkWidget * | widg | ) |
destroy a GtkWidget
widg | the GtkWidget to destroy |
Definition at line 157 of file startup_testing.c.
void hide_the_widgets | ( | GtkWidget * | widg | ) |
hide GtkWidget
widg | the GtkWidget to show |
Definition at line 122 of file startup_testing.c.
GError * init_gtk_gl_area | ( | GtkGLArea * | area | ) |
Definition at line 242 of file startup_testing.c.
void init_opengl | ( | ) |
initialize OpenGL rendering parameters
Definition at line 197 of file startup_testing.c.
gboolean is_GLExtension_Supported | ( | const char * | extension | ) |
Definition at line 180 of file startup_testing.c.
gboolean is_the_widget_visible | ( | GtkWidget * | widg | ) |
test if a GtkWidget exist, then return if it is visible or not
widg | the GtkWidget |
Definition at line 138 of file startup_testing.c.
int main | ( | int | argc, |
char * | argv[] ) |
Definition at line 436 of file startup_testing.c.
G_MODULE_EXPORT void on_realize | ( | GtkWidget * | widg, |
gpointer | data ) |
realize event for the OpenGL widget
widg | the GtkWidget sending the signal |
data | the associated data pointer |
Definition at line 276 of file startup_testing.c.
void printhelp | ( | ) |
Definition at line 61 of file startup_testing.c.
void printversion | ( | ) |
Definition at line 82 of file startup_testing.c.
G_MODULE_EXPORT void run_opengl_test | ( | GApplication * | app, |
gpointer | data ) |
run the OpenGL testing
app | the application to run |
data | the associated data pointer |
Definition at line 430 of file startup_testing.c.
void show_the_widgets | ( | GtkWidget * | widg | ) |
show GtkWidget
widg | the GtkWidget to show |
Definition at line 106 of file startup_testing.c.
void test_opengl_window | ( | GApplication * | app | ) |
test possibility to create an OpenGL context
app | the application |
Definition at line 405 of file startup_testing.c.
int opengl_visual = 1 |
Definition at line 54 of file startup_testing.c.