Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updates to version r77 #10

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
threejs facade
==============

This if a facade of threejs javascript 3D library ( http://threejs.org/ ).
All the code is inside facade folder (threejs subproject).
This if a facade of threejs javascript 3D library ( http://threejs.org/ ).
All the code is inside facade folder (threejs subproject).
It also contains some extra classes for esier scence creation and css3d rendering.

Usage
Expand All @@ -11,7 +11,7 @@ Usage
In order to resolve a lib you should add a resolver::
```scala
resolvers += sbt.Resolver.bintrayRepo("denigma", "denigma-releases") //add resolver
libraryDependencies += "org.denigma" %%% "threejs-facade" % "0.0.74-0.1.6" //add dependency
libraryDependencies += "org.denigma" %%% "threejs-facade" % "0.0.77-0.1.6" //add dependency
```

Gettings started
Expand Down
22 changes: 22 additions & 0 deletions facade/src/main/scala/org/denigma/threejs/extras/FontUtils.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
package org.denigma.threejs.extras.geometries

import scalajs.js
import scalajs.js.annotation._
import org.denigma.threejs._

@js.native
@JSName("THREE.FontUtils")
object FontUtils extends js.Object {
var faces: js.Any = js.native
var face: String = js.native
var weight: String = js.native
var style: String = js.native
var size: Double = js.native
var divisions: Double = js.native
def getFace(): Face3 = js.native
def loadFace(data: TypefaceData): TypefaceData = js.native
def drawText(text: String): js.Any = js.native
def extractGlyphPoints(c: String, face: Face3, scale: Double, offset: Double, path: Path): js.Any = js.native
def generateShapes(text: String, parameters: js.Any = js.native): js.Array[Shape] = js.native
var Triangulate: js.Any = js.native
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package org.denigma.threejs.extras.geometries

import scalajs.js
import scalajs.js.annotation._
import org.denigma.threejs._

@js.native
@JSName("THREE.TextGeometry")
class TextGeometry extends ExtrudeGeometry {
def this(text: String, TextGeometryParameters: TextGeometryParameters = js.native) = this()
}
Loading