🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Test

Started by
6 comments, last by Michael Tanczos 10 years, 11 months ago
test
Advertisement
[source lang="csharp"]

if (1==2)
{
Console.WriteLine("Hello World");
}

[/source]
[source lang="csharp"]
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MultiVMR9cs;
using ShaderLibrary;

namespace RoverScript
{
public enum RoverScriptObjects
{
TEXT,
IMAGE
};

public class LayerAttributes
{
private double _alpha = 1;
private double _xpos;
private double _ypos;
private double _zpos;
private double _xscale = 1;
private double _yscale = 1;
private double _zscale = 1;
private double _xrot;
private double _yrot;
private double _zrot;
private bool _visible;
public RoverScriptObjects ltype; // 1 = text, 2 = image
private VideoSource vsrc;

/*
public void TransferAttributes()
{
vsrc.Visible = _visible;
vsrc.XPosition = (float)_xpos;
vsrc.YPosition = (float)_ypos;
vsrc.ZPosition = (float)_zpos;
vsrc.XScale = (float)_xscale;
vsrc.YScale = (float)_yscale;
vsrc.ZScale = (float)_zscale;
vsrc.XRotation = (float)_xrot;
vsrc.YRotation = (float)_yrot;
vsrc.ZRotation = (float)_zrot;
vsrc.Alpha = (float)_alpha;
}

public void CopyAttributes()
{

_visible = vsrc.Visible;
_xpos = (double)vsrc.XPosition;
_ypos = (double)vsrc.YPosition;
_zpos = (double)vsrc.ZPosition;
_xscale = (double)vsrc.XScale;
_yscale = (double)vsrc.YScale;
_zscale = (double)vsrc.ZScale;
_xrot = (double)vsrc.XRotation;
_yrot = (double)vsrc.YRotation;
_zrot = (double)vsrc.ZRotation;
_slpha = (double)vsrc.Alpha;
}

*/

public double x
{
get
{
return _xpos;
}
set
{
vsrc.XPosition = (float)value;
_xpos = value;
}
}

public double y
{
get
{
return _ypos;
}
set
{
vsrc.YPosition = (float)value;
_ypos = value;
}
}

public double z
{
get
{
return _zpos;
}
set
{
vsrc.ZPosition = (float)value;
_zpos = value;
}
}

public double alpha
{
get
{
return _alpha;
}
set
{
if (value < 0)
{
_alpha = 0;
}
else if (value > 255)
{
_alpha = 255;
}
else
_alpha = value;

_alpha /= 255f;

vsrc.Alpha = (float)value;
}
}

public double x_rotation
{
get
{
return _xrot;
}
set
{
_xrot = value;

vsrc.XRotation = (float)_xrot;
}
}

public double y_rotation
{
get
{
return _yrot;
}
set
{
_yrot = value;

vsrc.YRotation = (float)_yrot;
}
}

public double z_rotation
{
get
{
return _zrot;
}
set
{
_zrot = value;
vsrc.ZRotation = (float)_zrot;
}
}

public double x_scale
{
get
{
return _xscale;
}
set
{
_xscale = value;
vsrc.XScale = (float)_xscale;
}
}

public double y_scale
{
get
{
return _yscale;
}
set
{
_yscale = value;
vsrc.YScale = (float)_yscale;
}
}

public double z_scale
{
get
{
return _zscale;
}
set
{
_zscale = value;
vsrc.ZScale = (float)_zscale;
}
}

public int visible
{
get
{
if (_visible)
return 1;
else
return 0;
}
set
{
if (value == 0)
_visible = false;
else
_visible = true;

vsrc.Visible = _visible;
}
}

// If item is a font
string FontStyle;
}


}

[/source]
Replying to Test

for (int i = 0; i < 100; i++)
{
}


dog cat mouse
pokpk
unsure.png
[source lang="cpp"]

$fstatquery = array(
'select' => 't.forum_id,count(t.forum_id) as cnt',
'from' => array('posts' => 'p'),
'add_join' => array (
array (
'select' => '',
'from' => array('topics' => 't'),
'type' => 'inner',
'where' => 'p.topic_id=t.tid'
)
),
'where' => 'p.author_id=5',
'group' => 't.forum_id'

);

$this->DB->build($fstatquery);

//echo $this->DB->fetchSqlstring();

$stats = array();
$sum = 0.0;
$a = $this->DB->execute();
while ( $row = $this->DB->fetch($a) )
{
$stats[intval($row['forum_id'])] = doubleval($row['cnt']);
$sum += doubleval($row['cnt']);
}
[/source]

[source lang="csharp"]
title: editor.lang.syntaxhighlight.title,
minWidth: 500,
minHeight: 400,
onShow: function() {
// Try to grab the selected pre tag if any
var editor = this.getParentEditor();
var selection = editor.getSelection();
var element = selection.getStartElement();
var preElement = element && element.getAscendant('pre', true);

// Set the content for the textarea
var text = '';
var optionsObj = null;
if (preElement) {
code = parseHtml(preElement.getHtml());
optionsObj = getOptionsForString(preElement.getAttribute('class'));
optionsObj.code = code;
} else {
optionsObj = getDefaultOptions();
}
this.setupContent(optionsObj);
},
[/source]

test


$$x=\frac{1+y}{1+2z^2}$$

\[ 1 + \frac{q^2}{(1-q)}+\frac{q^6}{(1-q)(1-q^2)}+\cdots =
\prod_{j=0}^{\infty}\frac{1}{(1-q^{5j+2})(1-q^{5j+3})},
\quad\quad \text{for $|q|&lt;1$}. \]

This topic is closed to new replies.

Advertisement