atomes 1.1.15
atomes: an atomic scale modeling tool box
Loading...
Searching...
No Matches
startup_testing.c File Reference

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>
+ Include dependency graph for startup_testing.c:

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
 

Detailed Description

Startup testing of OpenGL configuration for the atomes program.

Author
Sébastien Le Roux sebas.nosp@m.tien.nosp@m..lero.nosp@m.ux@i.nosp@m.pcms..nosp@m.unis.nosp@m.tra.f.nosp@m.r

Definition in file startup_testing.c.

Macro Definition Documentation

◆ APP_EXTENSION

#define APP_EXTENSION

Definition at line 51 of file startup_testing.c.

Function Documentation

◆ create_opengl_window()

GtkWidget * create_opengl_window ( GApplication * app)

create the test OpenGL window

Parameters
appthe target GApplication

Definition at line 372 of file startup_testing.c.

◆ destroy_this_widget()

GtkWidget * destroy_this_widget ( GtkWidget * widg)

destroy a GtkWidget

Parameters
widgthe GtkWidget to destroy

Definition at line 157 of file startup_testing.c.

◆ hide_the_widgets()

void hide_the_widgets ( GtkWidget * widg)

hide GtkWidget

Parameters
widgthe GtkWidget to show

Definition at line 122 of file startup_testing.c.

◆ init_gtk_gl_area()

GError * init_gtk_gl_area ( GtkGLArea * area)

Definition at line 242 of file startup_testing.c.

◆ init_opengl()

void init_opengl ( )

initialize OpenGL rendering parameters

Definition at line 197 of file startup_testing.c.

◆ is_GLExtension_Supported()

gboolean is_GLExtension_Supported ( const char * extension)

Definition at line 180 of file startup_testing.c.

◆ is_the_widget_visible()

gboolean is_the_widget_visible ( GtkWidget * widg)

test if a GtkWidget exist, then return if it is visible or not

Parameters
widgthe GtkWidget

Definition at line 138 of file startup_testing.c.

◆ main()

int main ( int argc,
char * argv[] )

Definition at line 436 of file startup_testing.c.

◆ on_realize()

G_MODULE_EXPORT void on_realize ( GtkWidget * widg,
gpointer data )

realize event for the OpenGL widget

Parameters
widgthe GtkWidget sending the signal
datathe associated data pointer

Definition at line 276 of file startup_testing.c.

◆ printhelp()

void printhelp ( )

Definition at line 61 of file startup_testing.c.

◆ printversion()

void printversion ( )

Definition at line 82 of file startup_testing.c.

◆ run_opengl_test()

G_MODULE_EXPORT void run_opengl_test ( GApplication * app,
gpointer data )

run the OpenGL testing

Parameters
appthe application to run
datathe associated data pointer

Definition at line 430 of file startup_testing.c.

◆ show_the_widgets()

void show_the_widgets ( GtkWidget * widg)

show GtkWidget

Parameters
widgthe GtkWidget to show

Definition at line 106 of file startup_testing.c.

◆ test_opengl_window()

void test_opengl_window ( GApplication * app)

test possibility to create an OpenGL context

Parameters
appthe application

Definition at line 405 of file startup_testing.c.

Variable Documentation

◆ opengl_visual

int opengl_visual = 1

Definition at line 54 of file startup_testing.c.