~ubuntu-branches/ubuntu/quantal/mesa/quantal

« back to all changes in this revision

Viewing changes to src/mesa/shader/nvvertexec.h

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2007-02-21 12:44:07 UTC
  • mfrom: (1.2.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 22.
  • Revision ID: james.westby@ubuntu.com-20070221124407-rgcacs32mycrtadl
ImportĀ upstreamĀ versionĀ 6.5.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 * Mesa 3-D graphics library
3
 
 * Version:  6.1
 
3
 * Version:  6.5.2
4
4
 *
5
 
 * Copyright (C) 1999-2004  Brian Paul   All Rights Reserved.
 
5
 * Copyright (C) 1999-2006  Brian Paul   All Rights Reserved.
6
6
 *
7
7
 * Permission is hereby granted, free of charge, to any person obtaining a
8
8
 * copy of this software and associated documentation files (the "Software"),
28
28
#ifndef NVVERTEXEC_H
29
29
#define NVVERTEXEC_H
30
30
 
 
31
 
 
32
/**
 
33
 * Virtual vertex program machine state.
 
34
 * Only used during program execution.
 
35
 */
 
36
struct vp_machine
 
37
{
 
38
   GLfloat Temporaries[MAX_NV_VERTEX_PROGRAM_TEMPS][4];
 
39
   GLfloat Inputs[MAX_NV_VERTEX_PROGRAM_INPUTS][4];
 
40
   GLuint InputsSize[MAX_NV_VERTEX_PROGRAM_INPUTS];
 
41
   GLfloat Outputs[MAX_NV_VERTEX_PROGRAM_OUTPUTS][4];
 
42
   GLint AddressReg[4];
 
43
};
 
44
 
 
45
 
 
46
 
31
47
extern void
32
 
_mesa_init_vp_per_vertex_registers(GLcontext *ctx);
 
48
_mesa_init_vp_per_vertex_registers(GLcontext *ctx, struct vp_machine *machine);
33
49
 
34
50
extern void
35
51
_mesa_init_vp_per_primitive_registers(GLcontext *ctx);
36
52
 
37
53
extern void
38
 
_mesa_exec_vertex_program(GLcontext *ctx, const struct gl_vertex_program *program);
39
 
 
40
 
extern void
41
 
_mesa_dump_vp_state( const struct gl_vertex_program_state *state );
 
54
_mesa_exec_vertex_program(GLcontext *ctx,
 
55
                          struct vp_machine *machine,
 
56
                          const struct gl_vertex_program *program);
 
57
 
 
58
extern void
 
59
_mesa_exec_vertex_state_program(GLcontext *ctx,
 
60
                                struct gl_vertex_program *vprog,
 
61
                                const GLfloat *params);
 
62
 
 
63
extern void
 
64
_mesa_dump_vp_state( const struct gl_vertex_program_state *state,
 
65
                     const struct vp_machine *machine);
42
66
 
43
67
#endif