rastpos.h revision f9995b30756140724f41daf963fa06167912be7f
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 35d25080074f2da1ebc47cdfb5c3491740a57ec03fChia-I Wu#include "main/mtypes.h" 36afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg 37afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg 38d25080074f2da1ebc47cdfb5c3491740a57ec03fChia-I Wu#if FEATURE_rastpos 39fbd8f212c3866ec98c1d8c9d3db3ddb7e7c479a5Brian Paul 40d25080074f2da1ebc47cdfb5c3491740a57ec03fChia-I Wuextern void 41d25080074f2da1ebc47cdfb5c3491740a57ec03fChia-I Wu_mesa_init_rastpos_dispatch(struct _glapi_table *disp); 42fbd8f212c3866ec98c1d8c9d3db3ddb7e7c479a5Brian Paul 43d25080074f2da1ebc47cdfb5c3491740a57ec03fChia-I Wu#else /* FEATURE_rastpos */ 44fbd8f212c3866ec98c1d8c9d3db3ddb7e7c479a5Brian Paul 45d25080074f2da1ebc47cdfb5c3491740a57ec03fChia-I Wustatic INLINE void 46d25080074f2da1ebc47cdfb5c3491740a57ec03fChia-I Wu_mesa_init_rastpos_dispatch(struct _glapi_table *disp) 47d25080074f2da1ebc47cdfb5c3491740a57ec03fChia-I Wu{ 48d25080074f2da1ebc47cdfb5c3491740a57ec03fChia-I Wu} 49fbd8f212c3866ec98c1d8c9d3db3ddb7e7c479a5Brian Paul 50d25080074f2da1ebc47cdfb5c3491740a57ec03fChia-I Wu#endif /* FEATURE_rastpos */ 511b258989462e907e45abbdf8743b0a75f22c02b3Brian Paul 526dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwellextern void 53f9995b30756140724f41daf963fa06167912be7fKristian Høgsberg_mesa_init_rastpos(struct gl_context *ctx); 546dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell 556dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell/*@}*/ 561b258989462e907e45abbdf8743b0a75f22c02b3Brian Paul 57d25080074f2da1ebc47cdfb5c3491740a57ec03fChia-I Wu#endif /* RASTPOS_H */ 58