Coder Social home page Coder Social logo

delphiglfw's Introduction

GLFW3 Language Bindings for Delphi

This repository contains Delphi language bindings and binaries for GLFW3 version 3.2.1.

It supports Windows (32-bit and 64-bit) and macOS (32-bit).

Source Code

The only unit you need is Neslib.Glfw3, which contains the header translations for GLFW3.

Example

The Example directory contains a minimal example of using GLFW and OpenGL to show a spinning triangle.

Deployment

This repository contains pre-compiled dynamic libraries for Windows and macOS. These can be found in the Libraries folder.

To deploy your GLFW3 application:

  • For Windows: place the glfw3_32.dll (32-bit) or glfw3_64.dll (64-bit) file in the same directory as the executable.
  • For macOS: add the file libglfw.3.2.dylib to the Delphi Deployment Manager and set the Remote Path to Contents\MacOS\

Documentation

Documentation can be found in the HTML Help file DelphiGlfw.chm in the Doc directory.

Alternatively, you can read the documentation on-line.

Updating the Dynamic Libraries

If you want to use a newer version of the dynamic libraries than those provided in this repository, then follow these steps:

For Windows

It is easiest to download the pre-compiled binaries from http://www.glfw.org/download.html. You can download both the 32-bit and 64-bit libraries here.

The downloaded zip file will contain multiple DLLs in different folders such as lib-mingw and lib-vc2015. You should use the DLL from the lib-mingw folder, since that one doesn't have any dependencies on a specific Visual Studio Runtime.

Note that the download for the 32-bit DLLs may also contain a lib-mingw-w64 folder. However, that folder does not contain a 64-bit DLL. You should download the 64-bit binaries for that.

Rename the DLL to glfw3_32.dll or glfw3_64.dll, depending on platform.

For macOS

Follow the instructions on the Compiling GLFW page.

Be sure to enable the BUILD_SHARED_LIBS option to build a dynamic library.

delphiglfw's People

Contributors

erikvanbilsen avatar

Watchers

Rickard Isaksson 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.