122144ab7552f0799bcfca506bf4ffa7f70a06649Gareth Hughes/* 222144ab7552f0799bcfca506bf4ffa7f70a06649Gareth Hughes * Mesa 3-D graphics library 322144ab7552f0799bcfca506bf4ffa7f70a06649Gareth Hughes * 43538f81513389b75cbd9e9b04a3723ce9c15b497Brian Paul * Copyright (C) 1999-2006 Brian Paul All Rights Reserved. 5e6c4159372310110ec81273c5d15481c903fefedBrian Paul * Copyright (C) 2011 VMware, Inc. All Rights Reserved. 622144ab7552f0799bcfca506bf4ffa7f70a06649Gareth Hughes * 722144ab7552f0799bcfca506bf4ffa7f70a06649Gareth Hughes * Permission is hereby granted, free of charge, to any person obtaining a 822144ab7552f0799bcfca506bf4ffa7f70a06649Gareth Hughes * copy of this software and associated documentation files (the "Software"), 922144ab7552f0799bcfca506bf4ffa7f70a06649Gareth Hughes * to deal in the Software without restriction, including without limitation 1022144ab7552f0799bcfca506bf4ffa7f70a06649Gareth Hughes * the rights to use, copy, modify, merge, publish, distribute, sublicense, 1122144ab7552f0799bcfca506bf4ffa7f70a06649Gareth Hughes * and/or sell copies of the Software, and to permit persons to whom the 1222144ab7552f0799bcfca506bf4ffa7f70a06649Gareth Hughes * Software is furnished to do so, subject to the following conditions: 1322144ab7552f0799bcfca506bf4ffa7f70a06649Gareth Hughes * 1422144ab7552f0799bcfca506bf4ffa7f70a06649Gareth Hughes * The above copyright notice and this permission notice shall be included 1522144ab7552f0799bcfca506bf4ffa7f70a06649Gareth Hughes * in all copies or substantial portions of the Software. 1622144ab7552f0799bcfca506bf4ffa7f70a06649Gareth Hughes * 1722144ab7552f0799bcfca506bf4ffa7f70a06649Gareth Hughes * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 1822144ab7552f0799bcfca506bf4ffa7f70a06649Gareth Hughes * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 1922144ab7552f0799bcfca506bf4ffa7f70a06649Gareth Hughes * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 20e6c4159372310110ec81273c5d15481c903fefedBrian Paul * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 2122144ab7552f0799bcfca506bf4ffa7f70a06649Gareth Hughes * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 2222144ab7552f0799bcfca506bf4ffa7f70a06649Gareth Hughes * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 2322144ab7552f0799bcfca506bf4ffa7f70a06649Gareth Hughes */ 24b014986fdb259eb60bd3e5a3fbcfcb218969f5f5Keith Whitwell 25b014986fdb259eb60bd3e5a3fbcfcb218969f5f5Keith Whitwell#ifndef _API_NOOP_H 26b014986fdb259eb60bd3e5a3fbcfcb218969f5f5Keith Whitwell#define _API_NOOP_H 27b014986fdb259eb60bd3e5a3fbcfcb218969f5f5Keith Whitwell 28e6c4159372310110ec81273c5d15481c903fefedBrian Paul 29db61b9ce39bccc43140357652ceb78baaf2aea44Vinson Lee#include "main/mfeatures.h" 30cef97267d696d37f4dccb22951499ca25d5d87adChia-I Wu#include "main/mtypes.h" 31cef97267d696d37f4dccb22951499ca25d5d87adChia-I Wu 32cab974cf6c2dbfbf5dd5d291e1aae0f8eeb34290Keith Whitwell 33e6c4159372310110ec81273c5d15481c903fefedBrian Paul#if FEATURE_beginend 3492d7ed8a20d4a018ce5324e6537ae7b478b9e5bfEric Anholt 353538f81513389b75cbd9e9b04a3723ce9c15b497Brian Paulextern void 363538f81513389b75cbd9e9b04a3723ce9c15b497Brian Paul_mesa_noop_vtxfmt_init(GLvertexformat *vfmt); 37cab974cf6c2dbfbf5dd5d291e1aae0f8eeb34290Keith Whitwell 38e6c4159372310110ec81273c5d15481c903fefedBrian Paulextern GLboolean 39e6c4159372310110ec81273c5d15481c903fefedBrian Paul_mesa_using_noop_vtxfmt(const struct _glapi_table *dispatch); 40e6c4159372310110ec81273c5d15481c903fefedBrian Paul 4142c2c371d6c4c82c3e9176e028281a91edfadafdChia-I Wu#else 4242c2c371d6c4c82c3e9176e028281a91edfadafdChia-I Wu 4342c2c371d6c4c82c3e9176e028281a91edfadafdChia-I Wustatic inline void 4442c2c371d6c4c82c3e9176e028281a91edfadafdChia-I Wu_mesa_noop_vtxfmt_init(GLvertexformat *vfmt) 4542c2c371d6c4c82c3e9176e028281a91edfadafdChia-I Wu{ 4642c2c371d6c4c82c3e9176e028281a91edfadafdChia-I Wu} 47e6c4159372310110ec81273c5d15481c903fefedBrian Paul 48cef97267d696d37f4dccb22951499ca25d5d87adChia-I Wu#endif /* FEATURE_beginend */ 49cef97267d696d37f4dccb22951499ca25d5d87adChia-I Wu 50e6c4159372310110ec81273c5d15481c903fefedBrian Paul 51cef97267d696d37f4dccb22951499ca25d5d87adChia-I Wu#endif /* _API_NOOP_H */ 52