Coder Social home page Coder Social logo

denislov / opengles Goto Github PK

View Code? Open in Web Editor NEW

This project forked from freeors/opengles

0.0 1.0 0.0 8.63 MB

方便初学者在Windows平台构建学习OpenGL/OpenGL ES的开发环境。

GLSL 1.04% Java 24.14% CMake 0.52% Makefile 2.17% C 68.23% Objective-C 3.64% C++ 0.25%

opengles's Introduction

###为什么存在这项目

和《OpenGL ES 3.0编程指南(原书第2版)》配套,方便初学者在Windows平台构建学习OpenGL/OpenGL ES的开发环境。

###Git后如何使用

  • 安装Visual Studio。opengles3中的sln是用Visual Studio 2015 + Update3生成,比它低版本的打开可能会失败,那需要自个新建sln,如何新建见底下的“新建sln”。
  • 下载OpenGL ES SDK。opengles3.sln设置的是adreno:https://developer.qualcomm.com/download/adrenosdk。
  • 打开opengles3/opengles3.sln
  • 确保配置管理器中的Configuration选择Debug,Platform选Win32。如果想用其它配置,像Debug、x64,那需要自个去设头文件、库文件这些。
  • 根据自个Adreno SDK安装路径修改项目中的lib路径。方法:“Linker”——“General”,“Additional Library Directories”,把“C:\Users\ancientcc\Desktop\AdrenoSDK\Development\Lib\Win32”改为您PC上的路径。
  • 编译。成功后“Debug”——“Start Debuging”,就能看到执行结果。
  • 如果其想换为其它章节源码,只要把那一源码对应的“.c”加入Source Files,把之前的“.c”移除或“Excluded From Build”设为“Yes”。

###新建sln

  • 运行Visual Studio,“New”——“Project”,选择“Win32 Console Application”。假设工程名是opengles3。
  • “Add”——“New Filter”,命名为“common”。把opengles3-book/Common/Source下的esShader.c、esShapes.c、esTransorm.c、esUtils.c,以及win32/esUtil_win32.c加入“common”。
  • “C/C++”——“General”,“Additional Include Directories”增加“../opengles3-book/Common/Include”,“../opengles3-book/External/Include”。
  • “Linker”——“General”,“Additional Library Directories”增加Adreno的lib路径“C:\Users\ancientcc\Desktop\AdrenoSDK\Development\Lib\Win32”。
  • “Linker”——“Input”,“Additional Dependencies”增加“libEGL.lib、libGLESv2.lib”
  • 编译。为让直接在Visua Studio运行,需要复制两部分文件。1)Adreno下的“libEGL.dll、libGLESv2.dll、TextureConverter.dll”复制到opengles3.exe同级目录。2)Adreno下的driver目录复制到opengles3.exe同级目录。

opengles's People

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.