Pages

Saturday, September 5, 2009

Interaction with Mouse in OpenGL (Part 1)

Cytoscape
Selection Objects (www.3dkingdoms.com)
BioLayout Express 3D, click here to get more details of BioLayoutJava
Interactive Graph Drawing is an open source for drawing interactive graph drawing on the WWW, inspired by Arthur van Hoff's early GraphLayout Java demonstration applet. He implemented how to select and move nodes on the graph.
VisAnt is an Integrative Visual Analysis Tool for Biological Networks and Pathways. Currently, there is not available source code.

/* Function prototypes */
/*
* Retrieve the current state of the mouse.
* The current button state is returned as a button bitmask, which can
* be tested using the SDL_BUTTON(X) macros, and x and y are set to the
* current mouse cursor position.  You can pass NULL for either x or y.
*/
extern DECLSPEC Uint8 SDLCALL SDL_GetMouseState(int *x, int *y);

With:
/* Used as a mask when testing buttons in buttonstate
Button 1: Left mouse button
Button 2: Middle mouse button
Button 3: Right mouse button
Button 4: Mouse wheel up  (may also be a real button)
Button 5: Mouse wheel down (may also be a real button)
*/
#define SDL_BUTTON(X)  (1 << ((X)-1))
#define SDL_BUTTON_LEFT  1
#define SDL_BUTTON_MIDDLE 2
#define SDL_BUTTON_RIGHT 3
#define SDL_BUTTON_WHEELUP 4
#define SDL_BUTTON_WHEELDOWN 5
#define SDL_BUTTON_LMASK SDL_BUTTON(SDL_BUTTON_LEFT)
#define SDL_BUTTON_MMASK SDL_BUTTON(SDL_BUTTON_MIDDLE)
#define SDL_BUTTON_RMASK SDL_BUTTON(SDL_BUTTON_RIGHT)


Thursday, September 3, 2009

Technology terms in Graphics Processing

Rasterization or Rasterisation is the task of taking an image described in a vector graphics format (shapes) and converting it into a raster image (pixels or dots) for output on a video display or printer, or for storage in a bitmap file format.

Wednesday, September 2, 2009

NewLisp

newLISP Fan Club: http://www.alh.net/newlisp/phpbb/index.php?sid=86dab258338cbad37c81adeee447cb6d

OpenGL Programming with GLFW

OpenGL: Overview from Answers.com: http://www.answers.com/topic/opengl
GLFW: An OpenGL Library: http://glfw.sourceforge.net/index.html
Introduction to OpenGL: http://opengl.joudoki.com/
Get GLFW at SourceForge.net: http://sourceforge.net/projects/glfw/
Forums for GLFW: http://sourceforge.net/forum/?group_id=72569

Saturday, August 29, 2009

GLX - GLU - DRI

GLX is used on Unix OpenGL implementation to manage interaction with the X Window System and to encode OpenGL onto the X protocol stream for remote rendering.

GLU stands for OpenGL Utility library. This is a set of functions to create texture mipmaps from a base image, map coordinates between screen and object space, and draw quadric surfaces and NURBS.

DRI stands for Direct Rendering Infrastructure. In simple terms, it enables hardware-accelerated 3D graphics on Linux. More specifically, it's a software architecture for coordinating the Linux kernel, X Window system, 3D graphics hardware and an OpenGL-based rendering engine.

(More http://www.opengl.org/resources/libraries/glx/)

Thursday, August 27, 2009

IT Communities, Forums and Groups

DaniWeb IT Discussion Community (Software Engineering, Web Development...
Genesim Software - Powerful applications (A lot of good things)

Draw in OpenGL

How to compile a program written in OpenGL

g++ -Wall -O my-program.cpp -lglut -o my-program
In which:
  • -Wall: is a way of saying the compiler that it should output all the warnings
  • -O: says the compiler to use some optimization techniques
  • -l is a linker option stating to include the library followed the -l. Here is glut.

    There is a little extra advantage when using GLUT, if you were developing an OpenGL application you should include the header files gl.h and glu.h (glu is the OpenGL Utility Library) but when you are including glut.h, glut.h guarantees the inclusion of gl.h and glu.h. So when we start and OpenGL application we start by writing:

    #include
  • -o: says the compiler that it should produce a binary file whose name is my-program
An Efficient Way to Draw Approximate Circles in OpenGL
An introduction of GLUT (Understand easily)


Draw Text
Faster Text in OpenGL
Drawing Text