Skip to content

Commit 0c9e719

Browse files
authored
Merge pull request #1485 from hyrodium/add-support-povray-2
Add support for POV-Ray. Works on Linux and Windows.
2 parents 6662ec4 + 9cc3f4c commit 0c9e719

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ Currently supported grammars are:
8181
| [Perl 6] | Yes | Yes | | `perl6` | |
8282
| PHP | Yes | Yes | | | |
8383
| [PostgreSQL] | Yes | Yes | [language-pgsql] | [`psql`] | Connects as user `PGUSER` to database `PGDATABASE`. Both default to your operating system's `USERNAME`, but can be set in the process environment or in Atom's [`init` file]: `process.env.PGUSER = {user name}` and `process.env.PGDATABASE = {database name}` |
84+
| [POV-Ray] | Yes | | [atom-language-povray] | `povengine`/`povray` | |
8485
| [PowerShell] | Yes | Yes | [language-powershell] | `powershell` | |
8586
| [Processing] | Yes | | [processing-language] | `processing-java` | |
8687
| [Prolog] | Yes | | [language-prolog] | `swipl` | Scripts must contain a rule with the head `main` (e.g.`main:- parent(X,lucas),writeln(X).`). The script is executed with the goal `main` and exits after the first result is found. The output is produced by the `writeln/1` predicates. |
@@ -129,6 +130,7 @@ Currently supported grammars are:
129130
[atlilypond]: https://atom.io/packages/atlilypond
130131
[atom-fstar]: https://github.com/FStarLang/atom-fstar#readme
131132
[atom-language-io]: https://atom.io/packages/atom-language-io
133+
[atom-language-povray]: https://atom.io/packages/atom-language-povray
132134
[AutoHotKey]: https://autohotkey.com
133135
[babel]: https://babeljs.io
134136
[batch]: https://ss64.com/nt
@@ -261,6 +263,7 @@ Currently supported grammars are:
261263
[perl 6]: https://perl6.org
262264
[pascal]: https://freepascal.org
263265
[PostgreSQL]: https://postgresql.org
266+
[POV-Ray]: http://www.povray.org/
264267
[powershell]: https://docs.microsoft.com/powershell
265268
[processing-language]: https://atom.io/packages/processing-language
266269
[processing]: https://processing.org

examples/hello.pov

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
background{rgb<1,1,1>}
2+
sphere{<0,0,1>,0.2}
3+

lib/grammars/index.coffee

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,14 @@ module.exports =
246246
command: 'fpc'
247247
args: ({filepath}) -> [filepath]
248248

249+
Povray:
250+
'File Based': {
251+
command
252+
args: ({filepath}) ->
253+
commands = if windows then 'pvengine /EXIT /RENDER ' else 'povray '
254+
return GrammarUtils.formatArgs(commands+filepath)
255+
}
256+
249257
Prolog:
250258
'File Based': {
251259
command

0 commit comments

Comments
 (0)