Giter Site home page Giter Site logo

gm_ultralight's Introduction

gm_ultralight .NET Core

Ultralight gmod integration uses Gmod.Net (why? for easier development :D)

WIP

  • Crashes on 2nd load - FIX in ultralight 1.3 (IPC)
  • use ISurface - help,help,help,help,help,help,help,help,help,help,help,help,help,help,help,help,help - GmodDotNet 2.0

Api

Ultralight

Render()

renders all views (required to drawing them)

Update()

updates network, scripts etc, run much as you can!

CreateView(width, height, transparent)

uint width uint height bool transparent

Examples

test.lua

test.lua

Covered API

  • - done
  • @ - internal use
  • x - almost done
  • - not done
  • view.EvaluateScript

  • x SetFinishLoadingCallback

  • view.LoadUrl

  • view.LoadHtml

  • view.FireMouseEvent

  • view.FireKeyEvent

  • view.FireScrollEvent

  • @ surface.GetDirtyBounds

  • @ bitmap.LockPixels in GetPixel

Contributors

SupinePandora43

GlebChili

NULL@mijyuoon#6666 - vgui::ISurface->DrawSetTextureRGBA

Eclipse@Eclipse#2437 - Sys_LoadInterface("vguimatsurface", "VGUI_Surface030", NULL, (void**)&surface)

Uros Spasojevic - uint8_t

gm_ultralight's People

Contributors

supinepandora43 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

gm_ultralight's Issues

proper networking

  • do not overflow net channel
  • solid line rects
  • dirty bounds usage
  • chunks

render to ASCII

i don't think gmod react good to image drawed by ascii characters.
but let's try it!

Main thread

Build System

  • migrate to CMake
  • migrate to premake
  • return CMAKE for compatibility mode
lmao

Code

  • working prototype youtube
  • set url not work commit
  • done_=false in SetUrl function. commit
  • why render doesn't change? commit
  • run ultralight renderer in seperate process
  • fix ulid=0 never loaded

Upstream

CI

  • CI integration
    • Linux
    • Windows
    • OSX

Native

  • Msg is platform specific: GetProcAddress for windows and so on... commit
  • ISurface
    ๐Ÿ†˜๐Ÿ†˜๐Ÿ†˜๐Ÿ†˜๐Ÿ†˜๐Ÿ†˜๐Ÿ†˜๐Ÿ†˜๐Ÿ†˜๐Ÿ†˜๐Ÿ†˜๐Ÿ†˜๐Ÿ†˜๐Ÿ†˜๐Ÿ†˜๐Ÿ†˜๐Ÿ†˜๐Ÿ†˜๐Ÿ†˜๐Ÿ†˜๐Ÿ†˜๐Ÿ†˜๐Ÿ†˜๐Ÿ†˜๐Ÿ†˜๐Ÿ†˜
  • use ISurface->DrawSetTextureRGBA (or at least DrawRect)**
    ๐Ÿ†˜๐Ÿ†˜๐Ÿ†˜๐Ÿ†˜๐Ÿ†˜๐Ÿ†˜๐Ÿ†˜๐Ÿ†˜๐Ÿ†˜๐Ÿ†˜๐Ÿ†˜๐Ÿ†˜๐Ÿ†˜๐Ÿ†˜๐Ÿ†˜๐Ÿ†˜๐Ÿ†˜๐Ÿ†˜๐Ÿ†˜๐Ÿ†˜๐Ÿ†˜๐Ÿ†˜๐Ÿ†˜๐Ÿ†˜๐Ÿ†˜๐Ÿ†˜
    image
    image

baking picture

main requirement:

  • relative to gmod.exe materials folder path
    minor requirements:
  • automatically resource.AddFile
  • UL.View_Bake(string view)
    • view->WriteToPNG()
    • switch b and r channels?

Imteraction

I can realize it faster than networking image.

  • Mouse
  • Keyboard
  • Scroll

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.