blob: c07865982d40678ec3ffc25760698139466dd9b4 [file] [log] [blame]
daniel@transgaming.com4f39fd92010-03-08 20:26:45 +00001//
2// Copyright (c) 2002-2010 The ANGLE Project Authors. All rights reserved.
3// Use of this source code is governed by a BSD-style license that can be
4// found in the LICENSE file.
5//
6
7#ifndef _INITIALIZE_INCLUDED_
8#define _INITIALIZE_INCLUDED_
9
daniel@transgaming.combbf56f72010-04-20 18:52:13 +000010#include "compiler/Common.h"
11#include "compiler/ShHandle.h"
12#include "compiler/SymbolTable.h"
daniel@transgaming.com4f39fd92010-03-08 20:26:45 +000013
14typedef TVector<TString> TBuiltInStrings;
15
16class TBuiltIns {
17public:
alokp@chromium.orge4249f02010-07-26 18:13:52 +000018 POOL_ALLOCATOR_NEW_DELETE(GlobalPoolAllocator)
19
20 void initialize(EShLanguage language, EShSpec spec, const TBuiltInResource& resources);
21 const TBuiltInStrings& getBuiltInStrings() { return builtInStrings; }
22
daniel@transgaming.com4f39fd92010-03-08 20:26:45 +000023protected:
alokp@chromium.orge4249f02010-07-26 18:13:52 +000024 TBuiltInStrings builtInStrings;
daniel@transgaming.com4f39fd92010-03-08 20:26:45 +000025};
26
alokp@chromium.orge4249f02010-07-26 18:13:52 +000027void IdentifyBuiltIns(EShLanguage language, EShSpec spec, const TBuiltInResource& resources,
28 TSymbolTable& symbolTable);
29
daniel@transgaming.com4f39fd92010-03-08 20:26:45 +000030extern "C" int InitPreprocessor(void);
31extern "C" int FinalizePreprocessor(void);
32
33#endif // _INITIALIZE_INCLUDED_