blob: ff6deab6b0bc1dacdd356f6086914e7e46e5cb32 [file] [log] [blame]
alokp@chromium.org76b82082010-03-24 17:59:39 +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#include "TranslatorGLSL.h"
8#include "OutputGLSL.h"
9
10TranslatorGLSL::TranslatorGLSL(EShLanguage l, int dOptions)
11 : TCompiler(l),
12 debugOptions(dOptions) {
13}
14
15bool TranslatorGLSL::compile(TIntermNode* root) {
16 TParseContext& parseContext = *GetGlobalParseContext();
17 TOutputGLSL outputGLSL(parseContext);
18 outputGLSL.header();
19 parseContext.treeRoot->traverse(&outputGLSL);
20
21 return true;
22}