Skip to content

[Plugin][Version 0.12.0][Functional] Chromium Embedded Framework Webview for Godot 3 and 4

License

Notifications You must be signed in to change notification settings

Lecrapouille/gdcef

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Chromium Embedded Framework Webview for Godot

This repository contains the source code of some C++ classes wrapping a subset of the Chromium Embedded Framework (CEF for shorter) API compiled to be used either as a Godot 3.5 native module (GDNative) or Godot 4.2 extension (GDExtension) which allows you to implement a webview for your 2D and 3D games through your gdscripts for Linux and Windows (Mac OS should work, if you are a MacOS dev, please contact me by creating an issue).

We have named this CEF module/extension gdcef. It can be downloaded directly from the Godot asset library:

For people, that does not want to compile this project by their selves can download pre-build artefacts https://github.com/Lecrapouille/gdcef/releases

For developers, since Godot 3.x GDNative and Godot 4.x GDExtension are not compatible, there are two branches:

For developers, you have to do:

  • git checkout godot-3.x for developing GDNative version for Godot 3.4 or 3.5.
  • git checkout godot-4.x for developing GDExtension version for Godot 4.2 and later.

Note: After talking with some developpers who want only display their JS game but do not necessary need Godot. In this case there is a better alternative: when compiling CEF, the build system also compile a small CEF application which, by default, open google. You can adapt to launch your game (local or remote) as default page. See this repo https://github.com/Lecrapouille/exa-application and adapt these lines for your application name (title) and the URL.