ss_context.h revision 53560311294814ae0daa8457307a2b25077bf4e9
153560311294814ae0daa8457307a2b25077bf4e9Keith Whitwell/* $Id: ss_context.h,v 1.9 2001/07/17 19:39:32 keithw Exp $ */ 222144ab7552f0799bcfca506bf4ffa7f70a06649Gareth Hughes 37c20642b1091df1aab7d9076a3fe2fb11c6f011cKeith Whitwell/* 47c20642b1091df1aab7d9076a3fe2fb11c6f011cKeith Whitwell * Mesa 3-D graphics library 57c20642b1091df1aab7d9076a3fe2fb11c6f011cKeith Whitwell * Version: 3.5 65e3bc0c2a2bcdf59949410f94c9b705fc1281ce8Jouk Jansen * 722144ab7552f0799bcfca506bf4ffa7f70a06649Gareth Hughes * Copyright (C) 1999-2001 Brian Paul All Rights Reserved. 85e3bc0c2a2bcdf59949410f94c9b705fc1281ce8Jouk Jansen * 97c20642b1091df1aab7d9076a3fe2fb11c6f011cKeith Whitwell * Permission is hereby granted, free of charge, to any person obtaining a 107c20642b1091df1aab7d9076a3fe2fb11c6f011cKeith Whitwell * copy of this software and associated documentation files (the "Software"), 117c20642b1091df1aab7d9076a3fe2fb11c6f011cKeith Whitwell * to deal in the Software without restriction, including without limitation 127c20642b1091df1aab7d9076a3fe2fb11c6f011cKeith Whitwell * the rights to use, copy, modify, merge, publish, distribute, sublicense, 137c20642b1091df1aab7d9076a3fe2fb11c6f011cKeith Whitwell * and/or sell copies of the Software, and to permit persons to whom the 147c20642b1091df1aab7d9076a3fe2fb11c6f011cKeith Whitwell * Software is furnished to do so, subject to the following conditions: 155e3bc0c2a2bcdf59949410f94c9b705fc1281ce8Jouk Jansen * 167c20642b1091df1aab7d9076a3fe2fb11c6f011cKeith Whitwell * The above copyright notice and this permission notice shall be included 177c20642b1091df1aab7d9076a3fe2fb11c6f011cKeith Whitwell * in all copies or substantial portions of the Software. 185e3bc0c2a2bcdf59949410f94c9b705fc1281ce8Jouk Jansen * 197c20642b1091df1aab7d9076a3fe2fb11c6f011cKeith Whitwell * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 207c20642b1091df1aab7d9076a3fe2fb11c6f011cKeith Whitwell * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 217c20642b1091df1aab7d9076a3fe2fb11c6f011cKeith Whitwell * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 227c20642b1091df1aab7d9076a3fe2fb11c6f011cKeith Whitwell * BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 237c20642b1091df1aab7d9076a3fe2fb11c6f011cKeith Whitwell * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 247c20642b1091df1aab7d9076a3fe2fb11c6f011cKeith Whitwell * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 257c20642b1091df1aab7d9076a3fe2fb11c6f011cKeith Whitwell * 267c20642b1091df1aab7d9076a3fe2fb11c6f011cKeith Whitwell * Authors: 277c20642b1091df1aab7d9076a3fe2fb11c6f011cKeith Whitwell * Keith Whitwell <keithw@valinux.com> 287c20642b1091df1aab7d9076a3fe2fb11c6f011cKeith Whitwell */ 297c20642b1091df1aab7d9076a3fe2fb11c6f011cKeith Whitwell 307c20642b1091df1aab7d9076a3fe2fb11c6f011cKeith Whitwell#ifndef SS_CONTEXT_H 317c20642b1091df1aab7d9076a3fe2fb11c6f011cKeith Whitwell#define SS_CONTEXT_H 327c20642b1091df1aab7d9076a3fe2fb11c6f011cKeith Whitwell 335e3bc0c2a2bcdf59949410f94c9b705fc1281ce8Jouk Jansen#include "mtypes.h" 347c20642b1091df1aab7d9076a3fe2fb11c6f011cKeith Whitwell#include "swrast/swrast.h" 357c20642b1091df1aab7d9076a3fe2fb11c6f011cKeith Whitwell#include "swrast_setup.h" 367c20642b1091df1aab7d9076a3fe2fb11c6f011cKeith Whitwell 377c20642b1091df1aab7d9076a3fe2fb11c6f011cKeith Whitwelltypedef struct { 387c20642b1091df1aab7d9076a3fe2fb11c6f011cKeith Whitwell GLuint NewState; 397c20642b1091df1aab7d9076a3fe2fb11c6f011cKeith Whitwell SWvertex *verts; 40d43a5943d8952367d9292653800b47a85f905343Keith Whitwell GLenum render_prim; 411182ffeec39bf419928ba862c225e80a439fee7aKeith Whitwell GLuint SetupIndex; 427c20642b1091df1aab7d9076a3fe2fb11c6f011cKeith Whitwell 4353560311294814ae0daa8457307a2b25077bf4e9Keith Whitwell /* Temporaries for translating away float colors: 4453560311294814ae0daa8457307a2b25077bf4e9Keith Whitwell */ 4553560311294814ae0daa8457307a2b25077bf4e9Keith Whitwell struct gl_client_array ChanColor; 4653560311294814ae0daa8457307a2b25077bf4e9Keith Whitwell struct gl_client_array ChanSecondaryColor; 4753560311294814ae0daa8457307a2b25077bf4e9Keith Whitwell 4853560311294814ae0daa8457307a2b25077bf4e9Keith Whitwell 491182ffeec39bf419928ba862c225e80a439fee7aKeith Whitwell struct { 501182ffeec39bf419928ba862c225e80a439fee7aKeith Whitwell void (*Start)( GLcontext * ); 511182ffeec39bf419928ba862c225e80a439fee7aKeith Whitwell void (*Finish)( GLcontext * ); 521182ffeec39bf419928ba862c225e80a439fee7aKeith Whitwell } Driver; 53cab974cf6c2dbfbf5dd5d291e1aae0f8eeb34290Keith Whitwell} SScontext; 547c20642b1091df1aab7d9076a3fe2fb11c6f011cKeith Whitwell 557c20642b1091df1aab7d9076a3fe2fb11c6f011cKeith Whitwell#define SWSETUP_CONTEXT(ctx) ((SScontext *)ctx->swsetup_context) 567c20642b1091df1aab7d9076a3fe2fb11c6f011cKeith Whitwell 577c20642b1091df1aab7d9076a3fe2fb11c6f011cKeith Whitwell#endif 58