diff options
author | Patrice Mandin <pmandin@caramail.com> | 2007-08-31 19:43:16 +0200 |
---|---|---|
committer | Patrice Mandin <pmandin@caramail.com> | 2007-08-31 19:46:39 +0200 |
commit | b0a1e81887a831f72ffbec4fe005e1837c81018c (patch) | |
tree | d0de291a53403e42deaf91728376a3a36092442a /src/mesa/drivers/dri/nouveau/nouveau_context.h | |
parent | 214347fdb4c30dc8bac5d4b9a823458709bc53ea (diff) |
nouveau: add hw-dependent function to update modelview*projection matrix
Diffstat (limited to 'src/mesa/drivers/dri/nouveau/nouveau_context.h')
-rw-r--r-- | src/mesa/drivers/dri/nouveau/nouveau_context.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/nouveau/nouveau_context.h b/src/mesa/drivers/dri/nouveau/nouveau_context.h index 778c4401e4..94d729daef 100644 --- a/src/mesa/drivers/dri/nouveau/nouveau_context.h +++ b/src/mesa/drivers/dri/nouveau/nouveau_context.h @@ -86,6 +86,9 @@ typedef struct nouveau_hw_func_t { nouveau_renderbuffer_t *depth); /* Update anything that depends on the window position/size */ void (*WindowMoved)(struct nouveau_context *); + + /* Update projection matrix */ + void (*UpdateModelProjMatrix)(struct nouveau_context *); } nouveau_hw_func; typedef struct nouveau_context { @@ -117,6 +120,9 @@ typedef struct nouveau_context { GLuint color_offset; GLuint specular_offset; + /* Projection*modelview matrix */ + GLmatrix model_proj; + /* Vertex state */ GLuint vertex_size; GLubyte *verts; |