ss_context.h revision 588225770c60834dfd2a95850435cc549167dc05
122144ab7552f0799bcfca506bf4ffa7f70a06649Gareth Hughes 27c20642b1091df1aab7d9076a3fe2fb11c6f011cKeith Whitwell/* 37c20642b1091df1aab7d9076a3fe2fb11c6f011cKeith Whitwell * Mesa 3-D graphics library 4f782b8189e718974a40d72ac4f6b8d213ca99e1eBrian Paul * Version: 4.1 55e3bc0c2a2bcdf59949410f94c9b705fc1281ce8Jouk Jansen * 6f782b8189e718974a40d72ac4f6b8d213ca99e1eBrian Paul * Copyright (C) 1999-2002 Brian Paul All Rights Reserved. 75e3bc0c2a2bcdf59949410f94c9b705fc1281ce8Jouk Jansen * 87c20642b1091df1aab7d9076a3fe2fb11c6f011cKeith Whitwell * Permission is hereby granted, free of charge, to any person obtaining a 97c20642b1091df1aab7d9076a3fe2fb11c6f011cKeith Whitwell * copy of this software and associated documentation files (the "Software"), 107c20642b1091df1aab7d9076a3fe2fb11c6f011cKeith Whitwell * to deal in the Software without restriction, including without limitation 117c20642b1091df1aab7d9076a3fe2fb11c6f011cKeith Whitwell * the rights to use, copy, modify, merge, publish, distribute, sublicense, 127c20642b1091df1aab7d9076a3fe2fb11c6f011cKeith Whitwell * and/or sell copies of the Software, and to permit persons to whom the 137c20642b1091df1aab7d9076a3fe2fb11c6f011cKeith Whitwell * Software is furnished to do so, subject to the following conditions: 145e3bc0c2a2bcdf59949410f94c9b705fc1281ce8Jouk Jansen * 157c20642b1091df1aab7d9076a3fe2fb11c6f011cKeith Whitwell * The above copyright notice and this permission notice shall be included 167c20642b1091df1aab7d9076a3fe2fb11c6f011cKeith Whitwell * in all copies or substantial portions of the Software. 175e3bc0c2a2bcdf59949410f94c9b705fc1281ce8Jouk Jansen * 187c20642b1091df1aab7d9076a3fe2fb11c6f011cKeith Whitwell * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 197c20642b1091df1aab7d9076a3fe2fb11c6f011cKeith Whitwell * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 207c20642b1091df1aab7d9076a3fe2fb11c6f011cKeith Whitwell * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 217c20642b1091df1aab7d9076a3fe2fb11c6f011cKeith Whitwell * BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 227c20642b1091df1aab7d9076a3fe2fb11c6f011cKeith Whitwell * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 237c20642b1091df1aab7d9076a3fe2fb11c6f011cKeith Whitwell * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 247c20642b1091df1aab7d9076a3fe2fb11c6f011cKeith Whitwell * 257c20642b1091df1aab7d9076a3fe2fb11c6f011cKeith Whitwell * Authors: 2605a4b37707d2c598ea68c05d07a3d65bcbf5a076Brian Paul * Keith Whitwell <keith@tungstengraphics.com> 277c20642b1091df1aab7d9076a3fe2fb11c6f011cKeith Whitwell */ 287c20642b1091df1aab7d9076a3fe2fb11c6f011cKeith Whitwell 297c20642b1091df1aab7d9076a3fe2fb11c6f011cKeith Whitwell#ifndef SS_CONTEXT_H 307c20642b1091df1aab7d9076a3fe2fb11c6f011cKeith Whitwell#define SS_CONTEXT_H 317c20642b1091df1aab7d9076a3fe2fb11c6f011cKeith Whitwell 325e3bc0c2a2bcdf59949410f94c9b705fc1281ce8Jouk Jansen#include "mtypes.h" 337c20642b1091df1aab7d9076a3fe2fb11c6f011cKeith Whitwell#include "swrast/swrast.h" 347c20642b1091df1aab7d9076a3fe2fb11c6f011cKeith Whitwell#include "swrast_setup.h" 357c20642b1091df1aab7d9076a3fe2fb11c6f011cKeith Whitwell 367c20642b1091df1aab7d9076a3fe2fb11c6f011cKeith Whitwelltypedef struct { 377c20642b1091df1aab7d9076a3fe2fb11c6f011cKeith Whitwell GLuint NewState; 38d43a5943d8952367d9292653800b47a85f905343Keith Whitwell GLenum render_prim; 39588225770c60834dfd2a95850435cc549167dc05Keith Whitwell GLuint last_index; 40588225770c60834dfd2a95850435cc549167dc05Keith Whitwell SWvertex *verts; 41cab974cf6c2dbfbf5dd5d291e1aae0f8eeb34290Keith Whitwell} SScontext; 427c20642b1091df1aab7d9076a3fe2fb11c6f011cKeith Whitwell 437c20642b1091df1aab7d9076a3fe2fb11c6f011cKeith Whitwell#define SWSETUP_CONTEXT(ctx) ((SScontext *)ctx->swsetup_context) 447c20642b1091df1aab7d9076a3fe2fb11c6f011cKeith Whitwell 457c20642b1091df1aab7d9076a3fe2fb11c6f011cKeith Whitwell#endif 46