core | glapi | vbo | math | shader | swrast | swrast_setup | tnl | tnl_dd

prog_execute.h File Reference

#include "main/config.h"

Data Structures

struct  gl_program_machine
 Virtual machine state used during execution of vertex/fragment programs. More...

Typedefs

typedef void(* FetchTexelLodFunc )(GLcontext *ctx, const GLfloat texcoord[4], GLfloat lambda, GLuint unit, GLfloat color[4])
typedef void(* FetchTexelDerivFunc )(GLcontext *ctx, const GLfloat texcoord[4], const GLfloat texdx[4], const GLfloat texdy[4], GLfloat lodBias, GLuint unit, GLfloat color[4])

Functions

void _mesa_get_program_register (GLcontext *ctx, gl_register_file file, GLuint index, GLfloat val[4])
GLboolean _mesa_execute_program (GLcontext *ctx, const struct gl_program *program, struct gl_program_machine *machine)
 Execute the given vertex/fragment program.


Typedef Documentation

typedef void(* FetchTexelDerivFunc)(GLcontext *ctx, const GLfloat texcoord[4], const GLfloat texdx[4], const GLfloat texdy[4], GLfloat lodBias, GLuint unit, GLfloat color[4])

typedef void(* FetchTexelLodFunc)(GLcontext *ctx, const GLfloat texcoord[4], GLfloat lambda, GLuint unit, GLfloat color[4])


Function Documentation

GLboolean _mesa_execute_program ( GLcontext ctx,
const struct gl_program program,
struct gl_program_machine machine 
)

Execute the given vertex/fragment program.

Parameters:
ctx rendering context
program the program to execute
machine machine state (must be initialized)
Returns:
GL_TRUE if program completed or GL_FALSE if program executed KIL.

void _mesa_get_program_register ( GLcontext ctx,
gl_register_file  file,
GLuint  index,
GLfloat  val[4] 
)


Generated on Sun Sep 27 06:48:02 2009 for Mesa Vertex and Fragment Program code by  doxygen 1.5.4