16dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell/** 26dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell * \file rastpos.h 36dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell * Raster position operations. 46dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell */ 5afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg 6afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg/* 7afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg * Mesa 3-D graphics library 823d8ef3937b3b66684f7feb62446abca8e91d307Brian Paul * Version: 4.1 922144ab7552f0799bcfca506bf4ffa7f70a06649Gareth Hughes * 1023d8ef3937b3b66684f7feb62446abca8e91d307Brian Paul * Copyright (C) 1999-2002 Brian Paul All Rights Reserved. 1122144ab7552f0799bcfca506bf4ffa7f70a06649Gareth Hughes * 12afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg * Permission is hereby granted, free of charge, to any person obtaining a 13afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg * copy of this software and associated documentation files (the "Software"), 14afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg * to deal in the Software without restriction, including without limitation 15afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg * the rights to use, copy, modify, merge, publish, distribute, sublicense, 16afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg * and/or sell copies of the Software, and to permit persons to whom the 17afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg * Software is furnished to do so, subject to the following conditions: 1822144ab7552f0799bcfca506bf4ffa7f70a06649Gareth Hughes * 19afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg * The above copyright notice and this permission notice shall be included 20afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg * in all copies or substantial portions of the Software. 2122144ab7552f0799bcfca506bf4ffa7f70a06649Gareth Hughes * 22afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 23afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 24afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 25afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg * BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 26afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 27afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 28afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg */ 29afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg 30afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg 31fbd8f212c3866ec98c1d8c9d3db3ddb7e7c479a5Brian Paul#ifndef RASTPOS_H 32fbd8f212c3866ec98c1d8c9d3db3ddb7e7c479a5Brian Paul#define RASTPOS_H 33afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg 34afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg 35bab188d22f033dd64f1ee4e50163131087ecff97Vinson Lee#include "compiler.h" 36bab188d22f033dd64f1ee4e50163131087ecff97Vinson Lee#include "mfeatures.h" 37afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg 38bab188d22f033dd64f1ee4e50163131087ecff97Vinson Leestruct _glapi_table; 39bab188d22f033dd64f1ee4e50163131087ecff97Vinson Leestruct gl_context; 40afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg 41d25080074f2da1ebc47cdfb5c3491740a57ec03fChia-I Wu#if FEATURE_rastpos 42fbd8f212c3866ec98c1d8c9d3db3ddb7e7c479a5Brian Paul 43d25080074f2da1ebc47cdfb5c3491740a57ec03fChia-I Wuextern void 44d25080074f2da1ebc47cdfb5c3491740a57ec03fChia-I Wu_mesa_init_rastpos_dispatch(struct _glapi_table *disp); 45fbd8f212c3866ec98c1d8c9d3db3ddb7e7c479a5Brian Paul 46d25080074f2da1ebc47cdfb5c3491740a57ec03fChia-I Wu#else /* FEATURE_rastpos */ 47fbd8f212c3866ec98c1d8c9d3db3ddb7e7c479a5Brian Paul 489520f483b8f1e45fa474674b415554988de5d8d3Brian Paulstatic inline void 49d25080074f2da1ebc47cdfb5c3491740a57ec03fChia-I Wu_mesa_init_rastpos_dispatch(struct _glapi_table *disp) 50d25080074f2da1ebc47cdfb5c3491740a57ec03fChia-I Wu{ 51d25080074f2da1ebc47cdfb5c3491740a57ec03fChia-I Wu} 52fbd8f212c3866ec98c1d8c9d3db3ddb7e7c479a5Brian Paul 53d25080074f2da1ebc47cdfb5c3491740a57ec03fChia-I Wu#endif /* FEATURE_rastpos */ 541b258989462e907e45abbdf8743b0a75f22c02b3Brian Paul 556dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwellextern void 56f9995b30756140724f41daf963fa06167912be7fKristian Høgsberg_mesa_init_rastpos(struct gl_context *ctx); 576dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell 586dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell/*@}*/ 591b258989462e907e45abbdf8743b0a75f22c02b3Brian Paul 60d25080074f2da1ebc47cdfb5c3491740a57ec03fChia-I Wu#endif /* RASTPOS_H */ 61